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

@php $no = 1; @endphp @foreach ($kategori as $dt) @endforeach
No Kode Kategori Nama Kategori Bagian Jabatan Seragam dan Atribut Action
{{ $no++ }} {{ $dt->kode_kategori }} {{ $dt->nama_kategori }} {{ $dt->bagian }} {{ $dt->jabatan }} {{ $dt->seragam_atribut }} {{-- check authorize edit --}} @if ($authorize->edit == '1') {{-- check status active --}} @if ($dt->is_active == 1) {{-- button edit --}} @endif @endif {{-- check authorize delete and data primary key not "msjit" --}} @if ($authorize->delete == '1')
@csrf @method('DELETE') {{-- button delete --}}
@endif
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush