Current Access :
@if ($vendor->plant)
{{ $vendor->plant->name }}
@elseif ($vendor->ao)
{{ $vendor->ao->ao_name }}
@else
N/A
@endif
@include('content._partials._sections.facility_vendor_access')
@include('content._partials._sections.edit_bank', [
'bank_detail' => $vendor,
])
| AGR # |
Facility |
Duration |
Created by |
Date |
Action |
| Name |
Type |
WEF |
To |
@isset($vendor->agreements)
@forelse($vendor->agreements as $key=>$agr)
| {{ $agr['code'] }} |
{{ $agr['facility'] ? $agr['facility']['name'] : 'N/A' }} |
@php
$badgeMap = [
'plant' => ['label' => 'Plant', 'color' => '#db4243'],
'building' => ['label' => 'Plant Building', 'color' => '#e08465'],
'plant_mcc' => ['label' => 'Plant Collection Point', 'color' => '#eb7aa0'],
'ao' => ['label' => 'Area Office', 'color' => '#28A745'],
'dp' => ['label' => 'Dispatch Point', 'color' => '#20C997'],
'mcc' => ['label' => 'Collection Center', 'color' => '#007bff'],
'ao_building' => ['label' => 'Area Office Building', 'color' => '#008080'],
];
$type = $agr['type'] ?? 'N/A';
$badge = $badgeMap[$type] ?? null;
@endphp
@if ($badge)
{{ $badge['label'] }}
@else
N/A
@endif
|
{{ $agr['wef_date'] }} |
{{ $agr['end_date'] }} |
{{ $agr['createdBy'] ? $agr['createdBy']['name'] : 'N/A' }} |
{{$agr['created_at'] ? \Carbon\Carbon::parse( $agr['created_at'])->format('d-M-Y'): 'N/A',}}
|
|
@empty
|
No data found |
@endforelse
@endisset
{{--
@error('have_vaccinated')
{{ $message }}
@enderror
--}}