{{ $pageTitle ?? __('messages.list') }}
{{ __('messages.back') }} @if($auth_user->can('booking list')) @endif
{{ Form::model($bookingdata,['method' => 'patch', 'route'=>['booking.update',$bookingdata->id], 'data-toggle'=>"validator" ,'id'=>'booking'] ) }} {{ Form::hidden('id') }}
{{ Form::label('status', __('messages.select_name',[ 'select' => __('messages.status') ]),['class'=>'form-control-label']) }}
{{ Form::select('status',$status,old('status'),[ 'id' => 'status' ,'class' =>'form-control select2js booking_status']) }}
{{ Form::label('date',__('messages.date').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('date',old('date'),['placeholder' => __('messages.date'),'class' =>'form-control datetimepicker','required']) }}
{{ Form::label('start_at',__('messages.start_at'),['class'=>'form-control-label']) }} {{ Form::text('start_at',old('start_at'),['placeholder' => __('messages.start_at'),'class' =>'form-control datetimepicker']) }}
{{ Form::label('end_at',__('messages.end_at'),['class'=>'form-control-label']) }} {{ Form::text('end_at',old('end_at'),['placeholder' => __('messages.end_at'),'class' =>'form-control datetimepicker']) }}
@if($bookingdata->payment_id != null)
{{ Form::label('payment_status',__('messages.payment_status').' *',['class'=>'form-control-label'],false) }} {{ Form::select('payment_status',['pending' => __('messages.pending') , 'paid' => __('messages.paid') ,'failed' => __('messages.failed') ],optional($bookingdata->payment)->payment_status,[ 'id' => 'payment_status' ,'class' =>'form-control select2js','required']) }}
@endif
{{ Form::label('description',__('messages.description'), ['class' => 'form-control-label']) }} {{ Form::textarea('description', null, ['class'=>"form-control textarea" , 'rows'=>3 , 'placeholder'=> __('messages.description') ]) }}
{{ Form::label('reason',__('messages.reason'), ['class' => 'form-control-label']) }} {{ Form::textarea('reason', null, ['class'=>"form-control textarea" , 'rows' => 3, 'placeholder'=> __('messages.reason') ]) }}
{{ Form::submit( __('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}
@section('bottom_script') @endsection