@extends('layouts.vendor.app') @section('title', 'Order Information') @section('content')

Order

Customer Information

@php $order_dt=DB::table('multi_order')->where('order_id',$order->id)->where('vendor_id',auth()->id())->first(); @endphp
@if ($order_dt->status == 0) Processing @elseif ($order_dt->status == 1) Shipping @endif Print
@if ($order->payment_method == 'Bkash' || $order->payment_method == 'Nagad' || $order->payment_method == 'Rocket') @elseif ($order->payment_method == 'Bank') @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 @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_dt->status ==5) @endif
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}}
Mobile Number {{$order->mobile_number}} Transaction ID {{$order->transaction_id}}
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}}
Coupon Code {{$order->coupon_code}} Subtotal {{$total}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}
Shipping Charge {{$order->shipping_charge/$seller_count}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }} Discount {{$discount}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}
partial pay {{$part}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }} Total {{$total+($order->shipping_charge/$seller_count)}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}
Due {{($total+($order->shipping_charge/$seller_count)-$part)-$discount}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }} Status @if ($order_dt->status == 0) Pending @elseif ($order_dt->status == 1) Processing @elseif ($order_dt->status == 2) Canceled @elseif ($order_dt->status == 4) Shipping @elseif ($order_dt->status == 5) Refund @else Delivered @endif
Refund Method {{$order->refund_method}}

Order Products

@foreach ($order->orderDetails as $key => $item) @if($item->product->user_id==auth()->id()) @endif @endforeach
SL Product Title Size Color Qty Price Subtotal
{{$key + 1}} Product Image {{$item->title}} {{$item->size}} {{$item->color}} {{$item->qty}} {{$item->price}} {{$item->total_price}}
@endsection