@extends('backend.layouts.master') @section('content')

{{ $page_title }}

@if ($order->type == 3)
@csrf
@endif {{ translate('Go Back') }} {{ translate('Go Back') }}
{{ translate('Invoice Number') }} {{ '#' . $order->order_number }}
{{ translate('Date') }}: {{ dateFormat($order->created_at) }}
{{ translate('Payment Method') }}: {{ ucfirst($order->wallets[0]->payment_method ?? '') }}
{{ translate('From') }}
{{ get_setting('company_name') }}

{{ get_setting('company_address') }}

{{ translate('Phone') }}: {{ get_setting('company_phone1') ?? get_setting('company_phone2') }}

{{ translate('Email') }}: {{ get_setting('company_email1') ?? get_setting('company_email2') }}

{{ translate('Billing To') }}

{{ $order->billing_first_name . ' ' . $order->billing_last_name }}

{{ $order->billing_address ?? '' }}{{ ', ' . $order->billing_cities->name ?? '' }}{{ ', ' . $order->billing_states->name ?? '' }}{{ ', ' . $order->billing_post_code ?? '' }}{{ ', ' . $order->billing_countries->name ?? '' }}

{{ translate('Phone') }}: {{ $order->billing_phone ?? '' }}

{{ translate('Email') }}: {{ $order->billing_email ?? '' }}

@if ($order->shipping_first_name && $order->shipping_last_name && $order->shipping_address)
{{ translate('Shipping To') }}

{{ $order->shipping_first_name . ' ' . $order->shipping_last_name }}

{{ $order->shipping_address ?? '' }}{{ ', ' . $order->shipping_cities->name ?? '' }}{{ ', ' . $order->shipping_states->name ?? '' }}{{ ', ' . $order->shipping_post_code ?? '' }}{{ ', ' . $order->shipping_countries->name ?? '' }}

{{ translate('Phone') }}: {{ $order->shipping_phone ?? '' }}

{{ translate('Email') }}: {{ $order->shipping_email ?? '' }}

@endif
{{ translate('Product') }} {{ translate('Qty') }} {{ $order->type == 2 ? translate('Bid Price') : translate('Price') }} {{ translate('Subtotal') }}
{{ $order->products->getTranslation('name', $lang) }} {{ $order->quantity }} {{ currency_symbol() }}{{ $order->type == 2 ? $order->bid_amount : $order->products->sale_price ?? $order->products->price }} {{ currency_symbol() . $order->amount }}
{{ translate('Note') }}: {{ $order->message }} {{ translate('Subtotal') }} {{ currency_symbol() . $order->amount }}
{{ translate('Tax') }} ({{ get_setting('tax_rate') }}%) {{ currency_symbol() . $order->tax_amount }}
{{ translate('Total') }} {{ currency_symbol() }}{{ $order->amount + $order->tax_amount }}
@endsection