<?php $__env->startSection("body"); ?>
      <div class="main-inv">
        <!-- <div class="inv-head">
            <div class="hd-lt">
              <p>APPLY CREDIT</p>
              <p>Enter the amount to apply</p>
            </div>
            <div class="hd-rt">
              <p>10.00 EGP</p>
              <input type="text" placeholder="10.00"><button>Apply Credit</button>
            </div>
        </div> -->
        <div class="inv-ico">
          <a href="#" onclick="window.print()"><i class="fas fa-print"></i>Print</a> <a href="#" onclick="window.open()" ><i class="far fa-file-pdf"></i> PDF</a>
        </div>
        <div class="inv-main">
          <div class="main-lt">
            <h3>Selling invoice</h3>
            <!-- <p>
              Lorem ipsum dolor sit amet dolor sit amet
            </p> -->
          </div>
          <div class="main-rt">
          
            <h1>invoice #<?php echo e($lastorderMasterAfterUpdate->order_number); ?></h1>
            <div class="inv-date">
              <p><i class="far fa-calendar"></i> Invoice Date</p> <span><?php echo e($lastorderMasterAfterUpdate->order_date); ?></span>
            </div>
            <div class="inv-date">
              <!-- <p><i class="far fa-calendar"></i> Due Date</p> <span>08/03/2020</span> -->
            </div>
          </div>
          <div class="clear-fix"></div>
          <div class="inv-mid" style="     margin-top:0px;">
          <table class="table table-bordered">
              <tr>
                <th>item code</th>
                <th>item serial</th>
                <th>item  price</th>
                <th>total price</th>
                <th>item  quantity</th>
              </tr>
              <?php $__currentLoopData = $allDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $details): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <tr>
              <td ><?php echo e($details->item_code); ?></td>
                <td ><?php echo e($details->item_serial); ?></td>
                <td ><?php echo e($details->item_price); ?></td>
                <td ><?php echo e($details->total_price); ?></td>
                <td ><?php echo e($details->item_quantity); ?></td>
              </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </table>
          </div>
          <div class="clear-fix"></div>
          <div class="inv-mid-2">
          
            <div class="mid-2-content-rt">
              <div>
                <p style="font-weight: bold; color: #551646;">Discount</p> <span><?php echo e($lastorderMasterAfterUpdate->discount); ?> EGP</span>
              </div>
              <div>
              <p style="font-weight: bold; color: #551646;">Tax Amount</p> <span><?php echo e($lastorderMasterAfterUpdate->tax_amount); ?> EGP</span>
              </div>
              <div class="mid-end">
                <p>total</p> <span><?php echo e($lastorderMasterAfterUpdate->total_amount); ?> EGP</span>
              </div>
            </div>
          </div>
         
          <div class="mid-2-content-rt" style="margin-left: 318px;">
            <div>
                <p style="font-weight: bold; color: #551646;">Invoice to</p> <span><?php echo e($lastorderMasterAfterUpdate->customer_name); ?></span>
              </div>
              <div>
                <p style="font-weight: bold; color: #551646;">customer phone</p> <span><?php echo e($lastorderMasterAfterUpdate->customer_phone); ?></span>
              </div>
               
            </div>
          <div class="clear-fix"></div>
        
        </div>
      </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make("include", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\khaled nabawy\Desktop\macpos\resources\views/invoice.blade.php ENDPATH**/ ?>