@extends('layouts.admin-simple') @section('title', 'Asset Allocations') @section('breadcrumb') @endsection @section('page-title')

Asset Allocations

Manage asset allocations to projects

@can('warehouse.fixed-asset-allocations.create') add New Allocation @endcan
@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
Clear
@forelse($allocations as $i => $alloc) @empty @endforelse
#Allocation #ProjectAssetsRequested ByDateStatusActions
{{ $allocations->firstItem() + $i }} {{ $alloc->allocation_number }} {{ $alloc->project ? $alloc->project->project_name : '-' }} {{ $alloc->items->count() }} {{ $alloc->requester ? $alloc->requester->name : '-' }} {{ $alloc->created_at ? $alloc->created_at->format('M d, Y') : '-' }} @php $colors = ['pending_approval' => 'warning', 'partially_allocated' => 'info', 'allocated' => 'success', 'cancelled' => 'secondary', 'draft' => 'secondary']; $labels = ['pending_approval' => 'Pending Allocation', 'partially_allocated' => 'Partially Allocated']; @endphp {{ $labels[$alloc->status] ?? ucfirst(str_replace('_', ' ', $alloc->status)) }}
No allocations found.
@if($allocations->hasPages()) @endif
@endsection