@extends('master.app') @section('title','Fixed Assets Register') @section('body') @php $fmt = fn($n)=> number_format((float)$n,2); $lang = $filters['lang'] ?? 'en'; @endphp @push('styles') @endpush
Fixed Assets Register Total Assets: {{ $totals['count'] ?? 0 }} Lang: {{ strtoupper($lang) }}
Source: company_assets • Base = total × ex_rate
{{-- KPIs (Current page) --}}
Quantity (page)
{{ $fmt($totals['qty'] ?? 0) }}
Total (page)
{{ $fmt($totals['total'] ?? 0) }}
Total Base (page)
{{ $fmt($totals['base'] ?? 0) }}
{{-- Table --}}
Register
Showing: {{ $assets->firstItem() ?? 0 }}-{{ $assets->lastItem() ?? 0 }}
@forelse($assets as $a) @php $cur = $currencyLookup[$a->currency_id] ?? null; $curName = $cur->title_en ?? $cur->title_ps ?? ('CUR #'.$a->currency_id); $cond = strtolower((string)$a->condition); $condIcon = str_contains($cond,'new') ? 'fa-sparkles' : (str_contains($cond,'good') ? 'fa-thumbs-up' : (str_contains($cond,'used') ? 'fa-recycle' : 'fa-triangle-exclamation')); @endphp @empty @endforelse
Asset Type Department Condition Qty Price Total FX Total (Base) Date Status
{{ $a->name }}
{{ $a->model ?: '—' }} {{ $curName }} @if($a->vendor_number) {{ $a->vendor_number }} @endif
{{ $a->type_title ?? '—' }} {{ $a->departement ?? '—' }} {{ $a->condition ?? '—' }} {{ $fmt($a->quantity) }} {{ $fmt($a->price) }} {{ $fmt($a->total) }} {{ $fmt($a->ex_rate) }} {{ $fmt($a->total_base) }} {{ $a->date }} {{ $a->status }}
No assets found.
Total records: {{ $assets->total() }}
{{ $assets->links() }}
@endsection