@php use App\Models\BusinessSetting; $company_phone =BusinessSetting::where('type', 'company_phone')->first()->value; $company_email =BusinessSetting::where('type', 'company_email')->first()->value; $company_name =BusinessSetting::where('type', 'company_name')->first()->value; $company_web_logo =BusinessSetting::where('type', 'company_footer_logo')->first()->value; $company_mobile_logo =BusinessSetting::where('type', 'company_mobile_logo')->first()->value; @endphp
.

Ph:{{$company_phone}}

Email:{{$company_email}}

INVOICE

Invoice ID

{{ $order->id }}

{{-- --}}

Invoice To,

{{$order->shipping['contact_person_name']}}

{{$order->customer['email']}}

{{$order->shipping['phone']}}

{{$order->shipping['address'] }}

{{$order->shipping ? $order->shipping['country'] : ""}}

Seller

{{ $order->sellerName->seller ? $order->sellerName->seller ? $order->sellerName->seller->f_name. ' '.$order->sellerName->seller->l_name : "Not Set" : "Not Set" }}

Payments Details

{{ $order->payment_method }}

{{date('y-m-d',strtotime($order['created_at']))}}

{{$order->payment_status}}


@php $subtotal=0; $total=0; $sub_total=0; $total_tax=0; $total_shipping_cost=0; $total_discount_on_product=0; $productprice=0; @endphp @foreach($order->details as $key=>$details) @php $subtotal=($details['price'])*$details->qty @endphp @php $sub_total+=$details['price']*$details['qty']; $total_tax+=$details['tax']; $total_shipping_cost+=$details->shipping ? $details->shipping->cost :0; $total_discount_on_product+=$details['discount']; $total+=$subtotal; $productprice +=$subtotal-$details['discount'] @endphp @endforeach
No. Item Description Variation Unit Price Qty Total
{{$key+1}} {{$details['product']?$details['product']->name:''}} {{$details['variant'] }} {{\App\CPU\BackEndHelper::usd_to_currency($details['price'])}} {{\App\CPU\BackEndHelper::currency_code()}} {{$details->qty}} {{\App\CPU\BackEndHelper::usd_to_currency($subtotal)}} {{\App\CPU\BackEndHelper::currency_code()}}
@if($order->payment_status =='unpaid') @endif
Sub Total {{\App\CPU\BackEndHelper::usd_to_currency($sub_total)}} {{\App\CPU\BackEndHelper::currency_code()}}
Products Price {{\App\CPU\BackEndHelper::usd_to_currency($productprice)}} {{\App\CPU\BackEndHelper::currency_code()}}
Shipping {{\App\CPU\BackEndHelper::usd_to_currency($total_shipping_cost)}} {{\App\CPU\BackEndHelper::currency_code()}}
Discount on Product - {{\App\CPU\BackEndHelper::usd_to_currency($total_discount_on_product)}} {{\App\CPU\BackEndHelper::currency_code()}}
Coupon Discount - {{\App\CPU\BackEndHelper::usd_to_currency($order->discount)}} {{\App\CPU\BackEndHelper::currency_code()}}
Total {{\App\CPU\BackEndHelper::usd_to_currency($order->order_amount)}} {{\App\CPU\BackEndHelper::currency_code()}}
Due {{\App\CPU\BackEndHelper::usd_to_currency($order->order_amount)}} {{\App\CPU\BackEndHelper::currency_code()}}

















Phone : {{\App\Models\BusinessSetting::where('type','company_phone')->first()->value}}

Website : {{url('/')}}

Email : {{$company_email}}