@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Asset assignments')) @include('admin.asset.partials.page_styles') @php use App\Support\Asset\AssetType; @endphp @push('css') @endpush @section('content')
{{ __('Track who holds each asset, employee acknowledgment, and consumable usage.') }}
| {{ __('Date') }} | {{ __('Employee') }} | {{ __('Type') }} | {{ __('Category') }} | {{ __('Asset') }} | {{ __('Serial / code') }} | {{ __('Qty') }} | {{ __('Acknowledgment') }} | {{ __('Usage') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ optional($item->assign_date)->format('Y-m-d') ?? optional($item->created_at)->format('Y-m-d') }} |
{{ $item->staff?->user?->name ?? '—' }}
@if($item->staff?->warehouse?->name)
{{ $item->staff->warehouse->name }}
@endif
|
{{ AssetType::label($assetType) }} | {{ $categoryName }} | {{ $assetName }} | {{ $identity }} | {{ $qtyDisplay }} |
@if($isAck)
{{ __('Acknowledged') }}
@if($item->acknowledged_at)
{{ $item->acknowledged_at->format('Y-m-d') }}
@endif
@else
{{ __('Pending') }}
@endif
|
@if($item->isConsumable())
{{ __('Used') }}: {{ number_format($consumed, 2) }} {{ $unit }}
{{ __('Remaining') }}: {{ number_format($remaining, 2) }} {{ $unit }}
|
@if($fullyConsumed) {{ __('Fully used') }} @elseif($canReturn) @else — @endif |
| {{ __('Date') }} | {{ __('Qty used') }} | {{ __('Note') }} |
|---|---|---|
| {{ $log->created_at?->format('Y-m-d H:i') }} | {{ number_format($log->qty_used, 2) }} {{ $unit }} | {{ $log->note ?: '—' }} |