@extends('layouts.admin-simple') @section('title', 'View Allocation') @section('breadcrumb')
{{ $allocation->project ? $allocation->project->project_name : '-' }}
| Allocation # | {{ $allocation->allocation_number }} |
| Project | {{ $allocation->project ? $allocation->project->project_name : '-' }} |
| Division | {{ $allocation->division ? $allocation->division->name : '-' }} |
| Purpose | {{ $allocation->purpose ?? '-' }} |
| Requested By | {{ $allocation->requester ? $allocation->requester->name : '-' }} |
| Allocated By | {{ $allocation->allocatedBy ? $allocation->allocatedBy->name : '-' }} |
| Status | @php $colors = ['pending_approval' => 'warning', 'partially_allocated' => 'info', 'allocated' => 'success']; $labels = ['pending_approval' => 'Pending Allocation', 'partially_allocated' => 'Partially Allocated']; @endphp {{ $labels[$allocation->status] ?? ucfirst(str_replace('_', ' ', $allocation->status)) }} |
Notes: {{ $allocation->notes }}
@endif| # | Asset Code | Asset Name | Category | Condition | Allocated | Action |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item->fixedAsset ? $item->fixedAsset->asset_code : '-' }} |
{{ $item->fixedAsset ? $item->fixedAsset->asset_name : '-' }} | {{ $item->fixedAsset && $item->fixedAsset->category ? $item->fixedAsset->category->category_name : '-' }} | {{ ucfirst($item->condition_at_allocation ?? '-') }} | @if($item->is_allocated) Yes @else No @endif | @if(!$item->is_allocated && in_array($allocation->status, ['pending_approval', 'partially_allocated', 'approved'], true)) @can('warehouse.fixed-asset-allocations.allocate') @endcan @else - @endif |