
                <div class="row">
                  <div class="d-print-none" style="float: right;">
                    <a href="javascript:void(0);" class="btn btn-default print"><i class="fa fa-print"></i> Print</a>
                  </div>
                  <div class="col-xl-12 col-md-12 col-12 mb-md-0 mb-4">
                    <div class=" invoice-preview-card">
                      <div class="card-body">
                        <div class="d-flex justify-content-between flex-xl-row flex-md-column flex-sm-row flex-column m-sm-3 m-0">
                          <div class="mb-xl-0 mb-4">
                            <div class="d-flex svg-illustration mb-4 gap-2 align-items-center">
                              <div class="app-brand-logo demo">



                              </div>
                              <span class="app-brand-text fw-bold fs-4">
                                The HeadBarber
                              </span>
                            </div>
                            <p class="mb-2"><?php echo e($bookings->branch->address); ?></p>
                            <p class="mb-2"><?php echo e($bookings->branch->email); ?></p>
                            <p class="mb-0"><?php echo e($bookings->branch->phone); ?></p>
                          </div>
                          <div>
                            <h4 class="fw-medium mb-2">BOOKING #<?php echo e($bookings->id); ?></h4>
                            <div class="mb-2 pt-1">
                              <span>Booked Date:</span>
                              <span class="fw-medium"><?php echo e(Common::DateFormat($bookings->booking_date)); ?> <?php echo e($bookings->booking_time); ?></span>
                            </div>
                            <div class="pt-1">
                              <span>Booking Created:</span>
                              <span class="fw-medium"><?php echo e(Common::DateFormat($bookings->created_at)); ?></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <hr class="my-0">
                      <div class="card-body">
                        <div class="row p-sm-3 p-0">
                          <div class="col-xl-6 col-md-12 col-sm-5 col-12 mb-xl-0 mb-md-4 mb-sm-0 mb-4">
                            <h6 class="mb-3">Customer:</h6>
                            <p class="mb-1"><?php echo e($bookings->name); ?></p>
                            <p class="mb-1"><?php echo e($bookings->email); ?></p>
                            <p class="mb-1"><?php echo e($bookings->phone); ?></p>

                          </div>
                          <div class="col-xl-6 col-md-12 col-sm-7 col-12">
                            <h6 class="mb-4">Bill To:</h6>
                            <table>
                              <tbody>

                                <?php $__currentLoopData = $bookings->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                  <td class="pe-4"><?php echo e($payment->payment_type); ?>:</td>
                                  <td><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($payment->amount); ?></td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                  <td class="pe-4">Total Paid:</td>
                                  <td class="fw-medium"><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($bookings->amount); ?></td>
                                </tr>

                              </tbody>
                            </table>
                          </div>
                        </div>
                      </div>
                      <div class="table-responsive border-top">
                        <table class="table m-0">
                          <thead>
                            <tr>
                              <th>Item</th>
                              <th>Description</th>
                              <th>Qty</th>
                              <th>Discount</th>
                              <th>Amount</th>
                            </tr>
                          </thead>
                          <tbody>
                            <?php $__currentLoopData = $bookings->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr class="<?php if($item->status == 0): ?>bg-gradient-danger text-white <?php endif; ?>">
                              <td class="text-nowrap"><?php echo e($item->item_name); ?></td>
                              <td class="text-nowrap"><?php echo e($item->category_name); ?></td>
                              <td><?php echo e($item->quantity); ?></td>
                              <td><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($item->discount); ?></td>
                              <td><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($item->amount); ?></td>
                            </tr>
                            <?php if($item->status == 0): ?>
                            <tr class="bg-gradient-danger text-white"><td colspan="5" class="text-center p-0"><?php echo e($item->reason); ?></td></tr>
                           <?php endif; ?>
                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                              <td colspan="3" class="align-top px-4 py-4">
                                <p class="mb-2 mt-3">
                                  <span class="ms-3 fw-medium">Staff:</span>
                                  <span><?php echo e(@$bookings->staff->name); ?></span>
                                </p>
                                <span class="ms-3">Thanks for coming</span>
                              </td>
                              <td class="text-end pe-3 py-4">
                                <p class="mb-2 pt-3">Subtotal:</p>
                                <p class="mb-2">Discount:</p>
                                <p class="mb-2">Tax:</p>
                                <p class="mb-0 pb-3">Total:</p>
                              </td>
                              <td class="ps-2 py-4">
                                <p class="fw-medium mb-2 pt-3"><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($bookings->subtotal??0.00); ?></p>
                                <p class="fw-medium mb-2"><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($bookings->discount); ?></p>
                                <p class="fw-medium mb-2">0.00</p>
                                <p class="fw-medium mb-0 pb-3"><?php echo e($bookings->branch->currency_symbol); ?><?php echo e($bookings->amount); ?></p>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>

                      
                    </div>
                  </div>
                    
                </div>

<?php /**PATH D:\projects\thamu\headbarber_pos\resources\views/bookings/show.blade.php ENDPATH**/ ?>