{{-- --}}

@lang('reports.logo'):

logo

@lang('reports.mainbranch'):

{{ $mainbranchName ?? '' }}

@lang('reports.mainbranchaddress'):

{{ $mainbranchAddress ?? '' }}

@lang('reports.mainbranchphone'):

{{ $mainbranch->phone ?? '' }}

@lang('reports.date') :

{{ $formattedDate }}

@lang('reports.customerdetail'):

{{ $Clientdetail->Client ? $Clientdetail->Client->name : '' }}

{{ $Clientdetail->Client ? $Clientdetail->Client->birth_date : '' }}

@if ($defaultAddress) {{ $defaultAddress->building . ' - ' . $defaultAddress->address_en . ' - ' . $defaultAddress->city . ' - ' . $defaultAddress->state }} @else @lang('reports.noaddress') @endif

{{ $Clientdetail->Client ? $Clientdetail->Client->email : '' }}

@if ($Clientdetail->Client) {{ $Clientdetail->Client->country_code ? '(' . $Clientdetail->Client->country_code . ')' : '' }} {{ $Clientdetail->Client->phone ?? '' }} @endif

@lang('reports.morinfo') @lang('reports.user') @lang('report.detail').

@if ($branchDetail)

@lang('reports.mostbranchordered') :

{{ $branchName }}

{{ $branchAddress }}

{{ $branchDetail->email }}

{{ $branchDetail->phone }}

@endif
@if ($orders) @foreach ($orders as $order) @endforeach @endif
@lang('reports.ordernum') @lang('reports.date') @lang('reports.useanydis') @lang('reports.branchname') @lang('reports.paymentmethod') @lang('reports.total')
{{ $order->order_number }}
{{ $order->date }}
{{ $order->coupon_id || $order->discount_id ? __('reports.has') : __('reports.nothas') }} @if (App::getLocale() == 'ar') {{ $order->Branch->name_ar }} @else {{ $order->Branch->name_en }} @endif {{ $order->orderTransactions->isNotEmpty() ? __('reports.' . $order->orderTransactions->first()->payment_method) : '' }} {{ $order->total_price_after_tax . $order->Branch->country->currency_symbol }}

@lang('reports.totalprice') :

{{ $Clientdetail->total_price }}

@if ($mostUsedPaymentMethod)
@endif