@lang('menu.codReport')
@lang('modules.report.codReportMessage')
@if ($tableMissing)
@lang('modules.delivery.codMonitoringMigrationMessage')
@else
@lang('modules.delivery.totalCodOrders')
{{ $summaryCards['total_orders'] }}
@lang('modules.report.expectedCodAmount')
{{ currency_format($summaryCards['expected_amount'], restaurant()->currency_id) }}
@lang('modules.report.collectedCodAmount')
{{ currency_format($summaryCards['collected_amount'], restaurant()->currency_id) }}
@lang('modules.report.settledCodAmount')
{{ currency_format($summaryCards['settled_amount'], restaurant()->currency_id) }}
@foreach ($executives as $executive)
@endforeach
@if (in_array('Export Report', restaurant_modules()))
@lang('app.export')
@endif
@endif
@if (!$tableMissing)
@if ($activeTab === 'order-status')
| @lang('modules.report.orderNumber') |
@lang('modules.report.orderDate') |
@lang('modules.customer.customer') |
@lang('menu.deliveryExecutive') |
@lang('modules.report.expectedCodAmount') |
@lang('modules.report.collectedCodAmount') |
@lang('app.status') |
@lang('modules.report.settlementStatus') |
@forelse ($tabData as $item)
| {{ $item->order?->show_formatted_order_number ?? '--' }} |
@include('common.date-time-display', ['date' => $item->order?->date_time]) |
{{ $item->order?->customer?->name ?? '--' }} |
{{ $item->deliveryExecutive?->name ?? '--' }} |
{{ currency_format((float) $item->expected_amount, restaurant()->currency_id) }} |
{{ currency_format((float) ($item->collected_amount ?? 0), restaurant()->currency_id) }} |
{{ __('modules.delivery.' . $item->status) }} |
{{
match ($item->status) {
'settled' => __('modules.delivery.settled'),
'submitted' => __('modules.delivery.submitted'),
'collected' => __('modules.delivery.readyForSettlement'),
default => __('modules.delivery.pendingCollection'),
}
}}
|
@empty
| @lang('app.noDataFound') |
@endforelse
@elseif ($activeTab === 'collections')
| @lang('menu.deliveryExecutive') |
@lang('modules.report.ordersCount') |
@lang('modules.report.expectedCodAmount') |
@lang('modules.report.collectedCodAmount') |
@forelse ($tabData as $item)
| {{ $item->deliveryExecutive?->name ?? '--' }} |
{{ (int) $item->total_orders }} |
{{ currency_format((float) $item->expected_amount, restaurant()->currency_id) }} |
{{ currency_format((float) $item->collected_amount, restaurant()->currency_id) }} |
@empty
| @lang('app.noDataFound') |
@endforelse
@elseif ($activeTab === 'pending')
| @lang('menu.deliveryExecutive') |
@lang('modules.delivery.dueToCollect') |
@lang('modules.delivery.readyForSettlement') |
@lang('modules.delivery.submittedForApproval') |
@lang('modules.report.ordersCount') |
@forelse ($tabData as $item)
| {{ $item->deliveryExecutive?->name ?? '--' }} |
{{ currency_format((float) $item->due_to_collect, restaurant()->currency_id) }} |
{{ currency_format((float) $item->ready_for_settlement, restaurant()->currency_id) }} |
{{ currency_format((float) $item->submitted_amount, restaurant()->currency_id) }} |
{{ (int) $item->pending_orders }} |
@empty
| @lang('app.noDataFound') |
@endforelse
@else
| @lang('modules.delivery.settlementNumber') |
@lang('menu.deliveryExecutive') |
@lang('modules.delivery.orderCount') |
@lang('modules.delivery.submittedAmount') |
@lang('app.note') |
@lang('app.status') |
@forelse ($tabData as $item)
| {{ $item->settlement_number ?? '--' }} |
{{ $item->deliveryExecutive?->name ?? '--' }} |
{{ $item->items->count() }} |
{{ currency_format((float) $item->submitted_amount, restaurant()->currency_id) }} |
{{ $item->notes ?: '--' }} |
{{
match ($item->status) {
'submitted' => __('modules.delivery.submitted'),
'approved' => __('modules.delivery.settled'),
'rejected' => __('modules.delivery.rejected'),
default => ucwords(str_replace('_', ' ', $item->status)),
}
}}
|
@empty
| @lang('app.noDataFound') |
@endforelse
@endif
@if ($tabData instanceof \Illuminate\Contracts\Pagination\Paginator && $tabData->hasPages())
{{ $tabData->links() }}
@endif
@endif