@php
$fontPath = [];
// Get the default locale code.
$getLocale = app()->getLocale();
// Get the current currency code.
$currencyCode = core()->getBaseCurrencyCode();
if ($getLocale == 'en' && $currencyCode == 'INR') {
$fontFamily = [
'regular' => 'DejaVu Sans',
'bold' => 'DejaVu Sans',
];
} else {
$fontFamily = [
'regular' => 'Arial, sans-serif',
'bold' => 'Arial, sans-serif',
];
}
if (in_array($getLocale, ['ar', 'he', 'fa', 'tr', 'ru', 'uk'])) {
$fontFamily = [
'regular' => 'DejaVu Sans',
'bold' => 'DejaVu Sans',
];
} elseif ($getLocale == 'zh_CN') {
$fontPath = [
'regular' => asset('fonts/NotoSansSC-Regular.ttf'),
'bold' => asset('fonts/NotoSansSC-Bold.ttf'),
];
$fontFamily = [
'regular' => 'Noto Sans SC',
'bold' => 'Noto Sans SC Bold',
];
} elseif ($getLocale == 'ja') {
$fontPath = [
'regular' => asset('fonts/NotoSansJP-Regular.ttf'),
'bold' => asset('fonts/NotoSansJP-Bold.ttf'),
];
$fontFamily = [
'regular' => 'Noto Sans JP',
'bold' => 'Noto Sans JP Bold',
];
} elseif ($getLocale == 'hi_IN') {
$fontPath = [
'regular' => asset('fonts/Hind-Regular.ttf'),
'bold' => asset('fonts/Hind-Bold.ttf'),
];
$fontFamily = [
'regular' => 'Hind',
'bold' => 'Hind Bold',
];
} elseif ($getLocale == 'bn') {
$fontPath = [
'regular' => asset('fonts/NotoSansBengali-Regular.ttf'),
'bold' => asset('fonts/NotoSansBengali-Bold.ttf'),
];
$fontFamily = [
'regular' => 'Noto Sans Bengali',
'bold' => 'Noto Sans Bengali Bold',
];
} elseif ($getLocale == 'sin') {
$fontPath = [
'regular' => asset('fonts/NotoSansSinhala-Regular.ttf'),
'bold' => asset('fonts/NotoSansSinhala-Bold.ttf'),
];
$fontFamily = [
'regular' => 'Noto Sans Sinhala',
'bold' => 'Noto Sans Sinhala Bold',
];
}
$seller = seller()->user();
$logo = $seller->logo
? Storage::url($seller->logo)
: bagisto_asset('images/logo.svg');
@endphp
|
@lang('marketplace::app.seller.transactions.view.id'):
#{{ $transaction->transaction_id }}
|
|
@lang('marketplace::app.seller.transactions.view.method'):
{{ $transaction->method }}
|
|
@lang('marketplace::app.seller.transactions.view.date'):
{{ core()->formatDate($transaction->created_at, 'd M Y') }}
|
|
@lang('marketplace::app.seller.transactions.view.name')
|
@lang('marketplace::app.seller.transactions.view.price')
|
@lang('marketplace::app.seller.transactions.view.qty')
|
@lang('marketplace::app.seller.transactions.view.total')
|
@lang('marketplace::app.seller.transactions.view.commission')
|
@lang('marketplace::app.seller.transactions.view.seller-total')
|
@foreach ($transaction->order->items as $orderItem)
@php
$item = $orderItem->item;
@endphp
|
{{ $item->name }}
|
{!! core()->formatBasePrice($item->base_price) !!}
|
{{ $item->qty_shipped }}
|
{!! core()->formatBasePrice($item->base_total) !!}
|
{!! core()->formatBasePrice($item->base_commission) !!}
|
{!! core()->formatBasePrice($item->base_seller_total) !!}
|
@endforeach
|
@lang('marketplace::app.seller.transactions.view.subtotal')
|
- |
{!! core()->formatBasePrice($transaction->order->base_sub_total) !!}
|
@if ($transaction->order->order->haveStockableItems())
|
@lang('marketplace::app.seller.transactions.view.shipping-handling')
|
- |
{!! core()->formatBasePrice(0) !!}
|
@endif
|
@lang('marketplace::app.seller.transactions.view.tax')
|
- |
{!! core()->formatBasePrice($transaction->order->base_tax_amount) !!}
|
|
@lang('marketplace::app.seller.transactions.view.commission')
|
- |
{!! core()->formatBasePrice($transaction->order->base_commission) !!}
|
|
@lang('marketplace::app.seller.transactions.view.seller-total')
|
- |
{!! core()->formatBasePrice($transaction->order->base_seller_total) !!}
|