@php $order = ($record->order) ? $record->order : $record; $currency_id = getDefaultCurrency( 'id' ); $currency_code = getDefaultCurrency( 'code' ); if ( isCustomer() ) { $customer_currency_id = getContactInfo( Auth::id(), 'currency_id' ); if ( ! empty( $customer_currency_id ) ) { $currency_id = $customer_currency_id; } $customer_currency_details = \App\Currency::find( $currency_id ); if ( ! empty( $customer_currency_details ) ) { $currency_code = $customer_currency_details->code; } } @endphp
@lang('custom.payments.customer') {{$order->customer->first_name}}
@lang('custom.payments.amount'){{digiCurrency($order->price, $currency_id)}}
@lang('custom.payments.date'){{digiDate($order->created_at)}}
@lang('custom.payments.status') {{ucfirst($order_status)}}
| @lang('orders::global.orders.product-only') | @lang('orders::global.orders.price-only') | @lang('orders::global.orders.quantity-only') | @lang('orders::global.orders.total-only') |
|---|---|---|---|
| {{ $products->product_name[$index] ?? '' }} | {{ digiCurrency( $price ) }} | {{ $quantity }} |
{{digiCurrency( $product_subtotal )}} |
|
@lang('orders::global.orders.total-tax')
(+){{digiCurrency($tax_total)}}
@lang('orders::global.orders.subtotal') {{digiCurrency($sub_total)}}
@lang('orders::global.orders.total-discount') (-){{digiCurrency($discount_total)}}
@lang('orders::global.orders.total'){{digiCurrency($grand_total)}} | |||