@php
$shed_gang_allocation->activity_id = $shed_gang_allocation->gang_allocation->activity->id;
$shed_gang_allocation->save();
@endphp
{{ $loop->index + 1 }}. |
{{ $shed_gang_allocation->activity->activity_name }} |
{{ $shed_gang_allocation->shed->name }} |
{{ $shed_gang_allocation->quantity_fulfiled }} |
{{ Carbon::parse($shed_gang_allocation->gang_allocation->allocation_date)->format('dS M Y') }} |
{{ optional(optional($shed_gang_allocation->internal_waybill)->lbc)->name }} |
{{ optional(optional($shed_gang_allocation->shed_waybill)->consignee)->name }} |
{{ optional($shed_gang_allocation->internal_waybill)->internal_waybill_no }} |
{{ Carbon::parse(optional($shed_gang_allocation->internal_waybill)->internal_waybill_date)->format('dS M Y') }}
|
{{ optional($shed_gang_allocation->shed_waybill)->waybill_no }} |
{{ optional($shed_gang_allocation->shed_waybill)->waybill_date }} |
{{ Carbon::parse(optional($shed_gang_allocation->internal_waybill)->purity_date)->format('dS M Y') }} |
{{ optional($shed_gang_allocation->internal_waybill)->purity_number }} |
{{ strtoupper($shed_gang_allocation->remarks) }} |
{{ strtoupper($shed_gang_allocation->other_remarks) }} |
@can('audit_toc.user', Auth::user())
@if (!is_null($shed_gang_allocation->vet_status))
vetted
@endif
@elsecan('audit_toc.supervisor')
@if (!is_null($shed_gang_allocation->vet_status))
validated
@endif
@elsecan('audit_toc.certifier')
@if (!is_null($shed_gang_allocation->vet_status))
certified
@endif
@endcan
|
@can('audit_toc.user', Auth::user())
VET |
@elsecan('audit_toc.supervisor')
VALIDATE |
@elsecan('audit_toc.certifier')
CERTIFY |
@endcan
@endforeach