| Customer Name |
{{$order->first_name}} |
Order ID |
{{$order->order_id}} |
| Invoice |
{{$order->invoice}} |
Company Name |
{{$order->company_name}} |
| Country |
{{$order->country}} |
Address |
{{$order->address}} |
| Town |
{{$order->town}} |
District |
{{$order->district}} |
| Post Code |
{{$order->post_code}} |
Phone |
{{$order->phone}} |
| Email |
{{$order->email}} |
Shipping Method |
{{$order->shipping_method}} |
| Payment Method |
{{$order->payment_method}} |
@if ($order->payment_method == 'Bkash' || $order->payment_method == 'Nagad' || $order->payment_method == 'Rocket')
| Mobile Number |
{{$order->mobile_number}} |
Transaction ID |
{{$order->transaction_id}} |
@elseif ($order->payment_method == 'Bank')
| Bank Name |
{{$order->bank_name}} |
Account Number |
{{$order->account_number}} |
| Holder Name |
{{$order->holder_name}} |
Branch Name |
{{$order->branch_name}} |
| Routing Number |
{{$order->routing_number}} |
@endif
@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