@foreach($billed as $key=>$item) @endforeach @foreach($refunds as $key=>$item) @endforeach
INVOICE
    Date: {{$invoice->invoice_date}}
    Invoice #: {{$invoice->id}}
    Billing Period {{$invoice->billing_period}}
Bill To:
Supplier {{$supplier->work_name}}    
Supplier ID {{$supplier->user->sid}}    
Supplier ID {{$supplier->work_address}}    
Booking Date Booking Reference Net Rate Total 
{{$item->booking_date}} {{$item->item_reference}} ${{number_format($item->amount,2)}} ${{ $key+1 == count($billed) ? number_format($billedTotal,2):NULL }}
   
Refunds      
{{$item->booking_date}} {{$item->item_reference}} ${{number_format($item->amount,2)}} ${{ $key+1 == count($billed) ? number_format($refundTotal,2):NULL }}
       
       
       
Subtotal     ${{ $key+1 == count($billed) ? number_format($billedTotal - abs($refundTotal),2):NULL }}
This is a computer genarated invoice for the services delivered during the above specified period. The payement of this invoice will be made on 25th of this month.
aktivitar (Pvt) Ltd. |  www.aktivitar.com | accounts@aktivitar.com