Asset Code : {{$note['asset'] ? $note['asset']['code'] : 'N/A'}}
Asset Name : {{$note['asset'] ? $note['asset']['name'] : 'N/A'}}
Current Location : {{$note['fromLocation'] ? $note['fromLocation']['name'] : 'N/A'}}
Current Location Code : {{$note['fromLocation'] ? $note['fromLocation']['code'] : 'N/A'}}
@php
$badges = [
'store' => ['label' => 'Area Office Store', 'color' => '#419afa'],
'plant_store' => ['label' => 'Plant Store', 'color' => '#419afa'],
'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'], // Bootstrap primary color
'ao_building' => ['label' => 'Area Office Building', 'color' => '#008080'],
];
@endphp
Current Type :
{{ $badges[$note['from_type']]['label'] ?? 'N/A' }}
Next Location : {{$note['toLocation'] ? $note['toLocation']['name'] : 'N/A'}}
Next Location Code : {{$note['toLocation'] ? $note['toLocation']['code'] : 'N/A'}}
@php
$badges = [
'store' => ['label' => 'Area Office Store', 'color' => '#419afa'],
'plant_store' => ['label' => 'Plant Store', 'color' => '#419afa'],
'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'], // Bootstrap primary color
'ao_building' => ['label' => 'Area Office Building', 'color' => '#008080'],
];
@endphp
Next Type :
{{ $badges[$note['to_type']]['label'] ?? 'N/A' }}
Movement Details
@include('content._partials._sections.fixed_movement_filter')