@extends('admin::layouts.master') @push('styles') @endpush @section('content')
| {{ translate('Order code') }}: | {{ $order->order_code }} |
| {{ translate('Bill Number') }}: | {{ $order->bill_no ?? 'Not provided' }} |
| {{ translate('Order Date') }}: | {{ $order->created_at->format('d.m.Y') }} |
| {{ translate('Payment method') }}: | {{ strtoupper(str_replace('_', ' ', $order->payment_type)) }} |
| SN | {{ translate('Product') }} | {{ translate('Qty') }} | {{ translate('MRP') }} | {{ translate('Offer Price') }} | {{ translate('Total') }} |
|---|---|---|---|---|---|
| {{ $key + 1 }} |
@if ($orderDetail->product != null)
{{ $orderDetail->product->name }}@if ($orderDetail->variation)
@foreach ($orderDetail->variation->combinations as $combination)
{{ $combination->attribute->name }}:
{{ $combination->attributeValue->attribute_value }}
@endforeach
@endif
|
{{ $orderDetail->quantity }} | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($orderDetail->mrp) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($orderDetail->offer_price) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif @php $priceToUse = $orderDetail->offer_price == 0 || $orderDetail->offer_price === null ? $orderDetail->mrp : $orderDetail->offer_price; @endphp {{ decimal_price($orderDetail->quantity * $priceToUse) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ translate('Total Amount') }} : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->total_amount + ($order->discount_rate ?? $order->discount_rate)) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ translate('Taxable Value') }} : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->sub_total_amount - (float) $order->tax) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ translate('Total Tax') }} : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->tax) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ $tax['key'] }} ({{ $tax['percentage'] }}) : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($value) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ translate('Shipping') }} : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->delivery_charge) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
|
{{ translate('Coupon Discount') }}
({{ $order->discount_percentage }}%):
@if ($order->coupon_code)
({{ $order->coupon_code }})
@endif
|
@if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->discount_rate) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |
| {{ translate('Grand Total') }} : | @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($order->total_amount) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif |