Execution Details
PO Number :
{{ $execution->order->po_number }}
@php
$statusColors = [
'pending' => 'warning',
'in_progress' => 'primary',
'completed' => 'success',
'cancelled' => 'danger',
];
$badge = $statusColors[$execution->status] ?? 'secondary';
@endphp
{{ str_replace('_', ' ', $execution->status) }}
@php
$docs = [
'AB Report',
'Alignment Report',
'Bolt Tightening Report',
'Roof Sheeting Report',
'Equipment Usage',
'Fuel Consumption',
'Site Photos',
'Manpower Details'
];
@endphp
| Document |
Status |
File |
Action |
@foreach($docs as $docName)
@php
$doc = $execution->documents
->where('document_type', $docName)
->first();
@endphp
|
{{ $docName }}
|
@if($doc)
{{ ucfirst($doc->status) }}
@else
Pending
@endif
|
@if($doc && $doc->file_path)
View File
@else
No File
@endif
|
|
@endforeach