@lang( 'restaurant.booking_details' )

@lang('contact.customer'): {{ $booking->customer->name }}
@lang('restaurant.service_staff'): {{ $booking->waiter->user_full_name ?? '--' }}
@lang('restaurant.correspondent'): {{ $booking->correspondent->user_full_name ?? '--' }}
@if(!empty($booking->booking_note)) @lang('restaurant.customer_note'): {{ $booking->booking_note }} @endif
@lang('messages.location'): {{ $booking->location->name }}
@lang('restaurant.table'): {{ $booking->table->name ?? '--' }}
@lang('restaurant.booking_starts'): {{ $booking_start }}
@lang('restaurant.booking_ends'): {{ $booking_end }}



{!! Form::open(['url' => action('Restaurant\BookingController@update', [$booking->id]), 'method' => 'PUT', 'id' => 'edit_booking_form' ]) !!}
{!! Form::select('location_id', $business_locations, $booking->location_id, ['class' => 'form-control', 'placeholder' => __('purchase.business_location'), 'required', 'id' => 'booking_location_id']); !!}
{!! Form::select('contact_id', $customers, $booking->contact_id, ['class' => 'form-control', 'id' => 'booking_customer_id', 'placeholder' => __('contact.customer'), 'required']); !!}
{!! Form::select('correspondent', $correspondents, $booking->correspondent_id, ['class' => 'form-control', 'placeholder' => __('restaurant.select_correspondent'), 'id' => 'correspondent']); !!}
{!! Form::label('status', __('restaurant.start_time') . ':*') !!}
{!! Form::text('booking_start', $booking->booking_start, ['class' => 'form-control','placeholder' => __( 'restaurant.start_time' ), 'required', 'id' => 'start_time', 'readonly']); !!}
{{-- @dd($booking->booking_end) --}}
{!! Form::label('status', __('restaurant.end_time') . ':*') !!}
{!! Form::text('booking_end', $booking->booking_end, ['class' => 'form-control','placeholder' => __( 'restaurant.end_time' ), 'required', 'id' => 'end_time', 'readonly']); !!}
{!! Form::label('booking_note', __( 'restaurant.customer_note' ) . ':') !!} {!! Form::textarea('booking_note', $booking->booking_note, ['class' => 'form-control','placeholder' => __( 'restaurant.customer_note' ), 'rows' => 3 ]); !!}
{!! Form::label('booking_status', __('restaurant.change_booking_status') . ':') !!} {!! Form::select('booking_status', $booking_statuses, $booking->booking_status, ['class' => 'form-control', 'placeholder' => __('restaurant.change_booking_status'), 'required']); !!}
{!! Form::close() !!}