@extends('layouts.app') @section('title', 'Depletion Job Detail') @section('content')
{{ $job->job_no }}
{{ $job->created_at->format('d M, Y h:i A') }}
{{ $job->user->name ?? 'System' }}
{{ $job->user->email ?? '' }}{{ $job->created_at->format('Y') }}
{{ $job->remarks }}
| Outlet / RT Code | Dist. Point | Market / Channel | Products & Quantities |
|---|---|---|---|
|
{{ $detail->outlet }}
{{ $detail->rt_code }}
|
@if($detail->outlet_info && $detail->outlet_info->distributionPoint)
{{ $detail->outlet_info->distributionPoint->name }}
{{ $detail->outlet_info->distributionPoint->code }}
@else
Not Assigned
@endif
|
{{ $detail->market }}
{{ $detail->channel }} / {{ $detail->chain }}
|
@foreach($detail->products as $p)
{{ $p->product->name ?? 'N/A' }}
{{ number_format($p->qty, 0) }}
@endforeach
|
| No details found for this job. | |||
| Distribution Point | Contact Email | Products & Quantities | View Details |
|---|---|---|---|
|
{{ $summary['dc']->name }}
{{ $summary['dc']->code ?? '' }}
|
{{ $summary['dc']->contact_email ?? 'N/A' }}
|
@foreach($summary['summaries'] as $item)
{{ $item['product_name'] }}
{{ number_format($item['total_qty'], 0) }}
@endforeach
|
@if($job->status === 'approved') View Details @else Awaiting Approval @endif |
| No distribution point data available. Please assign data first. | |||