@extends('layouts.admin') @section('content')
{{-- Header Section - Hidden when printing --}}

Master Inventaris Alat

Program Studi: {{ Auth::user()->prodi->nama_prodi ?? 'N/A' }}

{{-- Laporan Header - Only visible when printing --}}

DATA INVENTARIS LABORATORIUM & WORKSHOP

PRODI {{ Auth::user()->prodi->nama_prodi ?? '' }}

Dicetak pada: {{ now()->translatedFormat('d F Y H:i') }} WIB


{{-- Statistik Row - High Contrast Cards --}}
SIAP PAKAI

{{ $equipment->where('status_kondisi', 'Normal')->count() }} Unit

MAINTENANCE

{{ $equipment->whereNotIn('status_kondisi', ['Normal', 'Rusak'])->count() }} Unit

RUSAK / AFKIR

{{ $equipment->where('status_kondisi', 'Rusak')->count() }} Unit

{{-- Table Card --}}
@forelse($equipment as $index => $item) @empty @endforelse
No Identitas Alat Spesifikasi Unit Lokasi Kondisi Opsi
{{ $index + 1 }}
{{ $item->nama_barang ?? 'N/A' }}
{{ $item->kode_bmn ?? 'Tanpa Kode' }}
Merk: {{ $item->merk_tipe ?? '-' }}
Thn: {{ $item->tahun_perolehan ?? '-' }}
{{ $item->lab->nama_lab ?? 'Unit N/A' }} @php $status = $item->status_kondisi; $config = [ 'Normal' => ['bg' => '#15803d', 'icon' => 'fa-check-circle', 'label' => 'SIAP PAKAI'], 'Rusak' => ['bg' => '#b91c1c', 'icon' => 'fa-times-circle', 'label' => 'RUSAK / AFKIR'], 'Maintenance' => ['bg' => '#a16207', 'icon' => 'fa-tools', 'label' => 'MAINTENANCE'] ]; $current = $config[$status] ?? ['bg' => '#334155', 'icon' => 'fa-question-circle', 'label' => strtoupper($status)]; @endphp {{ $current['label'] }} Riwayat

Tidak ada data alat ditemukan untuk prodi ini.

{{-- CSS KHUSUS CETAK & UI --}} @endsection