@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')

{{-- retrieve table header --}} @foreach ($table_header as $header) @endforeach {{-- retrieve table detail --}} @foreach ($table_detail as $detail) @php $vcount = $loop->iteration; $primary = $table_primary->field; @endphp isactive == '0' ? 'class=not style=background-color:#ffe9ed;' : '' }}> @foreach ($table_header as $field) @php $string = $field->field; @endphp {{-- field type enum --}} @if ($field->type == 'enum') @include('components.td_enum') {{-- field type file --}} @elseif ($field->type == 'file') @include('components.td_file') {{-- field type image --}} @elseif($field->type == 'image') @include('components.td_image') {{-- field type join --}} @elseif($field->type == 'join') @include('components.td_join') {{-- field type currency --}} @elseif ($field->type == 'currency') @include('components.td_currency') {{-- field type date --}} @elseif ($field->type == 'date') @include('components.td_date') {{-- field type number --}} @elseif ($field->type == 'number') @include('components.td_number') @else @endif @endforeach @endforeach
No{{ $header->alias }}Action
{{ $vcount }} @if ($field->link != '') {{ $detail->$string }}   @else {{ $detail->$string }} @endif {{-- button view --}} {{-- check authorize edit --}} @if ($authorize->edit == '1') {{-- check status active --}} @if ($detail->isactive == 1) {{-- button edit --}} @endif @endif {{-- check authorize delete and data primary key not "msjit" --}} @if ($authorize->delete == '1' && $detail->$primary != 'msjit')
@csrf @method('DELETE') {{-- button delete --}}
@endif
{{-- check flag js on dmenu --}} @include('components.jsmanually') @endsection @push('js') @include('js.standr') @endpush