@php $k = 0; $l = 8; @endphp
@foreach($data as $key => $item)
Invoice #{{$item->invoice_id}}
Date : {{date('d M, Y',strtotime($item->order_date))}}

Name: {{$item->customer_name}}

Phone: {{$item->customer_phone}}

Address: {{$item->customer_address}}

@php($i=1) @foreach($item->get_products as $data) @endforeach
SL. Item(s) Qty Price
{{$i++}} {{\Illuminate\Support\Str::limit($data->get_product->name,30)}}
@if($data->attributes) @foreach(json_decode($data->attributes, true) as $key => $attr) {{$key}} - {{$attr}} @endforeach @endif
{{$data->qty}} {{$web_settings->currency_sign}} {{$data->price}}
Sub Total {{$web_settings->currency_sign}} {{$item->sub_total}}
Delivery Cost (+) {{$web_settings->currency_sign}} {{$item->shipping_cost}}
Total {{$web_settings->currency_sign}} {{$item->total}}
@if($k == $l)
@endif @endforeach