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 @php $part=DB::table('multi_order')->where('order_id',$order->id)->where('vendor_id',auth()->id())->sum('partial_pay'); $discount=DB::table('multi_order')->where('order_id',$order->id)->where('vendor_id',auth()->id())->sum('discount'); @endphp @if($order->pay_staus==null) @else @endif @if($order->pay_staus!=null) @endif
Invoice {{$order->invoice}}
Invoice Date {{date('d M Y', strtotime($order->created_at))}}
Payment Method {{$order->payment_method}}
Sub Total {{$total}}
Shipping Charge +{{$order->shipping_charge/$seller_count}}
Coupon({{$order->coupon_code}}) -{{number_format($discount, 2, '.', ',')}}
partial pay {{$part}}
Grand Total {{($total+($order->shipping_charge/$seller_count))-$discount}}
Payment Status UnpaidPayment Status Paid
Payment Date {{$order->pay_date}}
Due {{($total+($order->shipping_charge/$seller_count)-$part)-$discount}}
@foreach ($order->orderDetails as $key => $item) @if($item->product->user_id==auth()->id()) @endif @endforeach
SL Product Attribute Color Qty Price Subtotal
{{$key+1}} {{$item->title}} {{$item->color}} {{$item->qty}} {{number_format($item->price, 2, '.', ',')}} {{number_format($item->price, 2, '.', ',')*$item->qty}}