@extends('layouts/contentLayoutMaster') @section('title', 'Update Fixed Asset Allocation') @section('vendor-style') @endsection @section('page-style') @endsection @section('content') {{-- Add Dispatch Point --}} Allocation Note : {{$tn->code ? $tn->code : 'None'}} @if ($message = Session::get('success')) {{ $message }} @endif @if ($errorMessage = Session::get('errorMessage')) {{ $errorMessage }} @endif @csrf Asset Code : {{$tn->asset ? $tn->asset->code : 'N/A'}} From Store : {{ $tn->store ? $tn->store->name : 'N/A' }} @php $badges = [ 'user' => ['label' => 'User', '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 Type : {{ $badges[$tn->type]['label'] ?? 'N/A' }} Status : @if ($tn->status == 1) Completed @elseif ($tn->status == 3) Rejected @elseif ($tn->status == 4) Reverted @else Pending @endif Created By : {{$tn->createdBy ? $tn->createdBy->name : 'N/A'}} Note : {{$tn->note ? $tn->note : 'N/A'}} Asset Name : {{$tn->asset ? $tn->asset->name : 'N/A'}} To Location : {{$tn->allocatedAt ? $tn->allocatedAt->name : 'N/A'}} To Location Code : {{$tn->allocatedAt ? $tn->allocatedAt->code : 'N/A'}} WEF : {{$tn->wef ? $tn->wef : 'N/A'}} Install Date : {{$tn->installDate ? $tn->installDate : 'N/A'}} Date : {{$tn->created_at ? $tn->created_at->format('Y-m-d') : 'N/A'}} Select Allocation Type (Optional) Select Allocation Type @if ((auth()->user()->roles->first()->access_level == 6 || auth()->user()->roles->first()->access_level == 5 || auth()->user()->roles->first()->access_level == 4) && $store->plant_id != null) Plant Building (Plant) Collection Point (Plant) Area Office @else Area Office Dispatch Point Collection Point Building (Area Office) @endif Allocation WEF Date @error('wef') {{ $message }} @enderror Installation Date @error('installDate') {{ $message }} @enderror Note (Optional) @error('note') {{ $message }} @enderror @include('content._partials._sections.fixed_allocation_filter') Submit {{-- Reset Cancel --}} @endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection