<div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">
                <?php if(isset($booking)): ?>
                    <?php echo app('translator')->getFromJson('restaurant.booking_details'); ?>
                <?php elseif(isset($guest_checkin)): ?>
                    <?php echo app('translator')->getFromJson('restaurant.guest_checkin'); ?>
                <?php endif; ?>
            </h4>
        </div>
        <div class="modal-body">
            <?php if(isset($booking)): ?>
                <!-- Booking Details -->
                <div class="row">
                    <div class="col-sm-6">
                        <strong><?php echo app('translator')->getFromJson('contact.customer'); ?>:</strong> <?php echo e($booking->customer->name, false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.service_staff'); ?>:</strong> <?php echo e($booking->waiter->user_full_name ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.correspondent'); ?>:</strong> <?php echo e($booking->correspondent->user_full_name ?? '--', false); ?><br>
                        <?php if(!empty($booking->booking_note)): ?>
                            <strong><?php echo app('translator')->getFromJson('restaurant.customer_note'); ?>:</strong> <?php echo e($booking->booking_note, false); ?>

                        <?php endif; ?>
                    </div>
                    <div class="col-sm-6">
                        <strong><?php echo app('translator')->getFromJson('messages.location'); ?>:</strong> <?php echo e($booking->location->name, false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.table'); ?>:</strong> <?php echo e($booking->table->name ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.booking_starts'); ?>:</strong> <?php echo e($booking_start, false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.booking_ends'); ?>:</strong> <?php echo e($booking_end, false); ?>

                    </div>
                </div>
                <br>
                <hr>
                <div class="row">
                    <div class="col-sm-12">
                        <button type="button" class="btn btn-info btn-modal pull-right" data-href="<?php echo e(action('NotificationController@getTemplate', ['transaction_id' => $booking->id, 'template_for' => 'new_booking']), false); ?>" data-container=".view_modal">
                            <?php echo app('translator')->getFromJson('restaurant.send_notification_to_customer'); ?>
                        </button>
                    </div>
                </div>
                <br>
                <div class="row">
                    <div class="col-sm-9">
                        <?php echo Form::open(['url' => action('Restaurant\BookingController@update', [$booking->id]), 'method' => 'PUT', 'id' => 'edit_booking_form']); ?>

                            <div class="input-group">
                                <?php echo Form::select('booking_status', $booking_statuses, $booking->booking_status, ['class' => 'form-control', 'placeholder' => __('restaurant.change_booking_status'), 'required']); ?>

                                <div class="input-group-btn">
                                    <button type="submit" class="btn btn-primary"><?php echo app('translator')->getFromJson('messages.update'); ?></button>
                                </div>
                            </div>
                        <?php echo Form::close(); ?>

                    </div>
                    <div class="col-sm-3 text-center">
                        <button type="button" class="btn btn-danger" id="delete_booking" data-href="<?php echo e(action('Restaurant\BookingController@destroy', [$booking->id]), false); ?>"><?php echo app('translator')->getFromJson('restaurant.delete_booking'); ?></button>
                    </div>
                </div>
            <?php elseif(isset($guest_checkin)): ?>
                <!-- Guest Check-in Details -->
                <div class="row">
                    <div class="col-sm-6">
                        <strong><?php echo app('translator')->getFromJson('restaurant.surname'); ?>:</strong> <?php echo e($guest_checkin->surname, false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.name'); ?>:</strong> <?php echo e($guest_checkin->name, false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.email'); ?>:</strong> <?php echo e($guest_checkin->email ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.phone'); ?>:</strong> <?php echo e($guest_checkin->phone ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.gender'); ?>:</strong> <?php echo e($guest_checkin->gender ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.nationality'); ?>:</strong> <?php echo e($guest_checkin->nationality ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.id_type'); ?>:</strong> <?php echo e($guest_checkin->id_type ?? '--', false); ?><br>
                    </div>
                    <div class="col-sm-6">
                        <strong><?php echo app('translator')->getFromJson('restaurant.id_number'); ?>:</strong> <?php echo e($guest_checkin->id_number ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.passport_no'); ?>:</strong> <?php echo e($guest_checkin->passport_no ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.stay_purpose'); ?>:</strong> <?php echo e($guest_checkin->stay_purpose ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.payment_method'); ?>:</strong> <?php echo e($guest_checkin->payment_method ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.company'); ?>:</strong> <?php echo e($guest_checkin->company ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('restaurant.remarks'); ?>:</strong> <?php echo e($guest_checkin->remarks ?? '--', false); ?><br>
                        <strong><?php echo app('translator')->getFromJson('lang_v1.created_at'); ?>:</strong> <?php echo e(\Carbon::parse($guest_checkin->created_at)->format('Y-m-d H:i:s'), false); ?>

                    </div>
                </div>
            <?php endif; ?>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo app('translator')->getFromJson('messages.close'); ?></button>
        </div>
    </div>
</div><?php /**PATH F:\laragon\www\coffee_erp\resources\views/restaurant/booking/show.blade.php ENDPATH**/ ?>