Shop Address: {{setting('SITE_INFO_ADDRESS')}}
{{setting('SITE_INFO_PHONE')}}
{{setting('SITE_INFO_SUPPORT_MAIL')}}

Hello {{$order->first_name}},

An invoice with invoice number #{{$order->invoice}}

INVOICE TO:.

Name: {{$order->first_name}}
Address: {{$order->town}},{{$order->district}},{{$order->thana}}
Street: {{$order->address}}
Email: {{$order->email}}
Phone: {{$order->phone}}

@php $total=0; $ids=[]; @endphp @foreach ($order->orderDetails as $key => $item) @if($item->product->user_id==auth()->id()) @php $total+=$item->total_price; @endphp @endif @php $whole=\App\Models\Product::find($item->product_id); if (!in_array("$whole->user_id", $ids)) { $ids[]=$whole->user_id; } @endphp @endforeach