@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- ── CARD HEADER ── --}}
List {{ $title_menu }}
@include('components.alert')

{{-- ── TOOLBAR ── --}}
{{-- Tombol Tambah --}}
{{-- Filter Kategori + Search dalam satu form --}}
{{-- Dropdown Kategori --}} {{-- Search Input --}}
{{-- ── TABLE ── --}}
@foreach ($table_detail as $row) isactive == '0' ? 'class=not style=background-color:#ffe9ed;' : '' }}> {{-- Kolom Kategori --}} {{-- Kolom Role --}} @endforeach
Action No Judul Kategori Role File PDF Status
{{ $table_detail->firstItem() + $loop->index }} {{ $row->judul }} @php $badge = match($row->kategori) { 'permintaan_barang' => 'info', 'peminjaman_barang' => 'warning', 'ticketing' => 'primary', default => 'secondary', }; @endphp {{ $kategori_options[$row->kategori] ?? $row->kategori }} @php $roleBadge = match($row->role) { 'admins' => 'danger', 'itstaf' => 'primary', 'guests' => 'secondary', 'head.s' => 'info', 'mis.it' => 'warning', default => 'secondary', }; $roleLabel = $row->role ? ($role_options[$row->role] ?? $row->role) : 'Semua Role'; @endphp {{ $roleLabel }} @if ($row->file_pdf) Buka PDF @else - @endif {{ $row->isactive == 1 ? 'Aktif' : 'Non-Aktif' }}
Data {{ $table_detail->firstItem() }} - {{ $table_detail->lastItem() }} dari {{ $table_detail->total() }} data.
{{ $table_detail->appends(request()->query())->links('pagination::bootstrap-4') }}
{{-- ── MODAL ADD ── --}} {{-- ── MODAL EDIT ── --}} @endsection @push('js') @endpush