39 lines
1.8 KiB
PHP
39 lines
1.8 KiB
PHP
@extends('reports.layout', ['title' => 'Laporan Aset', 'subtitle' => 'Filter by status, lokasi, PIC, pengguna, garansi'])
|
|
|
|
@section('filters')
|
|
@include('reports.partials.asset_filters', ['filters' => $filters, 'statuses' => $statuses, 'classes' => $classes, 'categories' => $categories, 'locations' => $locations, 'departments' => $departments, 'users' => $users, 'pics' => $pics, 'warranties' => $warranties])
|
|
@endsection
|
|
|
|
@section('report-table')
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered text-nowrap align-middle mb-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>Kode</th><th>Nama</th><th>Status</th><th>Kategori</th><th>Lokasi</th><th>Dept</th><th>User</th><th>PIC</th><th>Garansi</th><th>Dibuat</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($assets as $asset)
|
|
<tr>
|
|
<td>{{ $asset->code }}</td>
|
|
<td>{{ $asset->name }}</td>
|
|
<td>{{ $asset->status?->name }}</td>
|
|
<td>{{ $asset->category?->name }}</td>
|
|
<td>{{ $asset->location?->name }}</td>
|
|
<td>{{ $asset->department?->name }}</td>
|
|
<td>{{ $asset->user?->name }}</td>
|
|
<td>{{ $asset->personInCharge?->name }}</td>
|
|
<td>{{ $asset->warranty?->name }}</td>
|
|
<td>{{ optional($asset->created_at)->format('d/m/Y') }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="10" class="text-center text-muted">Data tidak ditemukan.</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ $assets->links() }}
|
|
</div>
|
|
@endsection
|