{{ __('app.inventory.assets.title') }}

{{ __('app.inventory.assets.desc') }}

@can('inventory_assets.print') {{ __('app.inventory.assets.print_register') }} @endcan @can('inventory_assets.create') {{ __('app.inventory.assets.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($categories as $category) @endforeach @foreach ($fixedAssetItems as $fixedAssetItem) @endforeach @foreach ($suppliers as $supplier) @endforeach @foreach ($statuses as $statusOption) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif @if ($maintenanceAssetId !== null && $detail)
@foreach ($maintenanceTypes as $maintenanceType) @endforeach @foreach ($suppliers as $supplier) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif @if ($detail)

{{ __('app.inventory.fields.name_en') }}

{{ $detail->name_en }} / {{ $detail->name_bn }}

{{ $detail->category?->localizedName() ?? '—' }}

{{ __('app.inventory.fields.status') }}

{{ $detail->status->label() }}

{{ __('app.inventory.fields.purchase_cost') }}

{{ number_format((float) $detail->purchase_cost, 2) }}

{{ $detail->purchase_date->translatedFormat('d M Y') }}

{{ __('app.inventory.fields.location') }}

{{ $detail->location ?? '—' }}

{{ __('app.inventory.fields.custodian') }}

{{ $detail->custodian ?? '—' }}

{{ __('app.inventory.fields.warranty_expires_on') }}

{{ $detail->warranty_expires_on?->translatedFormat('d M Y') ?? '—' }}

{{ __('app.inventory.assets.total_maintenance_cost') }}

{{ number_format((float) $maintenanceTotal, 2) }}

@if ($detail->acquisition_reference)

{{ __('app.inventory.fields.acquisition_reference') }}: {{ $detail->acquisition_reference }}

@endif @if ($detail->notes)

{{ $detail->notes }}

@endif

{{ __('app.inventory.assets.maintenance_history') }}

@can('inventory_assets.maintain') @if ($maintenanceAssetId === null) {{ __('app.inventory.assets.add_maintenance') }} @endif @endcan
@forelse ($detail->maintenanceRecords as $record) @empty @endforelse
{{ __('app.inventory.fields.maintenance_date') }} {{ __('app.inventory.fields.maintenance_type') }} {{ __('app.inventory.fields.description') }} {{ __('app.inventory.fields.performed_by') }} {{ __('app.inventory.fields.cost') }} {{ __('app.inventory.assets.next_due') }}
{{ $record->maintenance_date->translatedFormat('d M Y') }} {{ $record->maintenance_type->label() }} {{ $record->description }} {{ $record->performed_by ?? '—' }} {{ $record->supplier?->localizedName() }} {{ number_format((float) $record->cost, 2) }} {{ $record->next_due_on?->translatedFormat('d M Y') ?? '—' }}
{{ __('app.inventory.assets.no_maintenance') }}
@can('inventory_assets.edit') {{ __('app.actions.edit') }} @endcan {{ __('app.actions.close') }}
@endif
@foreach ($statuses as $statusOption) @endforeach
@forelse ($assets as $asset) @empty @endforelse
{{ __('app.inventory.fields.asset_tag') }} {{ __('app.inventory.fields.name_en') }} {{ __('app.inventory.fields.location') }} {{ __('app.inventory.fields.custodian') }} {{ __('app.inventory.fields.status') }} {{ __('app.inventory.fields.purchase_cost') }} {{ __('app.actions.view') }}
{{ $asset->asset_tag }} {{ $asset->localizedName() }} {{ $asset->category?->localizedName() ?? '—' }} {{ $asset->location ?? '—' }} {{ $asset->custodian ?? '—' }} {{ $asset->status->label() }} {{ number_format((float) $asset->purchase_cost, 2) }}
{{ __('app.actions.view') }} @can('inventory_assets.edit') {{ __('app.actions.edit') }} @endcan
@if ($assets->hasPages())
{{ $assets->links() }}
@endif