@extends('seller.layouts.app') @section('main_content') @php $shopSetting =App\Models\SellerShopSetting::where('seller_id', Auth::guard('seller')->user()->id)->firstOrFail(); @endphp
{{@$shopSetting->shop_first_image}}

{{translate('INVOICE')}}

{{translate('Invoice To')}}:

@php $firstName = @$order->billingAddress ? @$order->billingAddress->first_name : @$order->billing_information->first_name ; $lastName = @$order->billingAddress ? @$order->billingAddress->last_name : @$order->billing_information->last_name ; $phone = @$order->billingAddress ? @$order->billingAddress->phone : @$order->billing_information->phone ; $email = @$order->billingAddress ? @$order->billingAddress->email : @$order->billing_information->email ; $city = @$order->billingAddress ? @$order->billingAddress->city->name : @$order->billing_information->city ; $country = @$order->billingAddress ? @$order->billingAddress->country->name : @$order->billing_information->country ; $zip = @$order->billingAddress ? @$order->billingAddress->zip : @$order->billing_information->zip ; $address = @$order->billingAddress ? @$order->billingAddress->address->address : @$order->billing_information->address ; @endphp

{{@$firstName }} {{@$lastName }}

{{@$address}}, {{@$country}} ,{{@$city}} {{@$zip}} {{@$email}} {{@$phone}}

{{translate('Invoice')}}# {{$order->order_id}}

{{translate('Date')}} {{get_date_time($order->created_at, 'd-m-Y')}}

{{translate('Status')}} @php echo order_status_badge($order->status) @endphp

@if($order->shipping_deliverie_id)

{{translate('Shipping Information')}}

{{translate('Name')}} {{translate('Duration')}} {{translate('Price')}}
{{(@$order->shipping->name)}} {{(@$order->shipping->duration)}} {{translate('Days')}} {{@(short_amount(@$order->shipping->price))}}
@endif

{{translate('Product Information')}}

@php $subtotal = 0; $discount = 0; $tax = 0; $totalAmount = 0; $originalPrice = 0; @endphp @foreach($orderDeatils as $orderDetail) @php $subtotal += $orderDetail->total_price; $originalPrice += $orderDetail->original_price; $tax += $orderDetail->total_taxes; $discount += $orderDetail->discount; $totalAmount += $orderDetail->total_price; @endphp @endforeach
{{translate('Item Description')}} {{translate('Price')}} {{translate('Qty')}} {{translate('Total')}}
{{($orderDetail->product->name)}} {{(short_amount($orderDetail->total_price/$orderDetail->quantity))}} {{$orderDetail->quantity}} {{(short_amount($orderDetail->total_price))}}
{{translate('Total')}} : {{(short_amount($subtotal))}}
@php $invoiceLogos = json_decode(site_settings('invoice_logo'),true) @endphp @if($order->payment_type != 1) @if($order->status == 5) @if(@$invoiceLogos['Delivered']) delivered.jpg @endif @elseif($order->payment_status == 2) @if(@$invoiceLogos['paid']) paid.jpg @endif @elseif($order->payment_status == 1) @if(@$invoiceLogos['unpaid']) unpaid.jpg @endif @endif @else @if(@$invoiceLogos['Cash On Delivery']) cod.jpg @endif @endif

{{translate('Original Total')}} : {{(short_amount($originalPrice))}}

{{translate('Tax amount')}} : {{(short_amount($tax))}}

{{translate('Discount')}} : {{(short_amount($discount))}}

{{translate('Sub Total')}} : {{(short_amount($subtotal))}}

@if($order->shipping_deliverie_id)

{{translate('Shipping Cost')}} : {{(short_amount($order->shipping_charge))}}

@endif

{{translate('Total')}}: {{(short_amount($order->shipping_charge + $subtotal))}}

@endsection @push('script-push') @endpush