@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- Form pencarian --}}
{{-- Tampilkan hasil pencarian jika ada --}} @if (request()->has('search') && request()->input('search') != '')
@if ($table_detail->isEmpty())

Data tidak ditemukan untuk pencarian "{{ request()->input('search') }}".

@else
@foreach ($table_header as $header) @endforeach {{-- retrieve table detail --}} @foreach ($table_detail as $detail) @php $primary = ''; foreach ($table_primary as $p) { $primary == '' ? ($primary = $detail->{$p->field}) : ($primary = $primary . ':' . $detail->{$p->field}); } $vcount = $loop->iteration; @endphp @foreach ($table_header as $field) @if ($field->type == 'image') @elseif($field->type == 'file') @elseif($field->type == 'enum') @php $data_query = DB::select($field->query); $data_query = array_values((array) $data_query[0]); @endphp @else @endif @endforeach @endforeach
No{{ $header->alias }}Action
{{ $vcount }} image @if ($detail->{$field->field}) {{ $field->alias }} @endif {{ $data_query[1] }}{{ $detail->{$field->field} }} {{-- button view --}} {{-- Modal View Historical --}} {{-- button edit --}} @if ($authorize->edit == '1') @endif {{-- button delete --}} @if ($authorize->delete == '1' && $primary != 'msjit')
@csrf @method('DELETE')
@endif
@endif
@endif
@endsection @push('js') @endpush