INVOICE {{$Invoice[0]->boxID}}

Hello dummy name
Trading LLC
Bashundhara 40, Road 7/C, sector 9
Bashundhara, Dhaka
{{--
company@example.com
--}}

Bill To:

Supplier: {{$Invoice[0]->supplyer->name}}
{{$Invoice[0]->supplyer->Adress}}
{{$Invoice[0]->supplyer->contact}}
@if($Invoice[0]->statusPaid==0)
PAID @else
UNPAID @endif
Invoice ID: {{$Invoice[0]->boxID}}

Created at: {{$Invoice[0]->products[0]->created_at}}
Total price: {{$Invoice[0]->price}}

@php $i=0; @endphp @foreach($Invoice[0]->products as $value) @endforeach @if($Invoice[0]->statusPaid==0) @else @endif
No Product Style Qty Unit price Amount
{{++$i}} {{$value->pName}} {{$value->styles->name}} {{$value->quantity}} {{$value->price}} {{$value->quantity*$value->price}}
SUBTOTAL {{$Invoice[0]->price}}
PAID {{$paymenthist}}
TOTAL {{$Invoice[0]->price-$paymenthist}}
Previous Due {{($Invoice[0]->supplyer->total_balance-$Invoice[0]->supplyer->paid)}}
GRAND TOTAL {{($Invoice[0]->supplyer->total_balance-$Invoice[0]->supplyer->paid)}}
SUBTOTAL {{$Invoice[0]->price}}
PAID {{$paymenthist}}
TOTAL {{$Invoice[0]->price-$paymenthist}}
Previous Due {{($Invoice[0]->supplyer->total_balance-($Invoice[0]->supplyer->paid-$paymenthist)-$Invoice[0]->price)}}
GRAND TOTAL {{$Invoice[0]->supplyer->total_balance-$Invoice[0]->supplyer->paid}}

________________
Authorise signature
__________________
Manager signature