@foreach($invoices as $invoice)
Sold To :
{{ $invoice->customer->firstname }} {{ $invoice->customer->lastname }}
@if(!empty($invoice->customer->address)) {{ $invoice->customer->address }}
@endif @if(!empty($invoice->customer->email)) {{ $invoice->customer->email }}
@endif {{ $invoice->customer->phone_number }}











@foreach($invoice->invoice_items as $item) @endforeach
# Name Quantity Price Total
{{ $loop->iteration }} {{ $item->stock->name }} {{ $item->quantity }} {{ number_format($item->selling_price,2) }} {{ number_format(($item->total_selling_price),2) }}
Sub Total {{ number_format($invoice->sub_total,2) }}
Total {{ number_format(($invoice->sub_total -$invoice->discount_amount),2) }}

@endforeach