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

@if ($authorize->add == '1') @endif @if ($authorize->excel == '1') @endif @if ($authorize->pdf == '1') @endif
@foreach ($table_header as $header) @endforeach @foreach ($table_detail as $detail) @php $primaryValues = []; foreach ($table_primary as $primaryField) { $primaryValues[] = $detail->{$primaryField->field}; } $primary = implode(':', $primaryValues); $vcount = $table_detail->firstItem() + $loop->index; @endphp isactive == '0' ? 'class=not style=background-color:#ffe9ed;' : '' }}> @foreach ($table_header as $field) @php $string = $field->field; @endphp @if ($field->type == 'enum') @include('components.td_enum') @elseif ($field->type == 'file') @include('components.td_file') @elseif($field->type == 'image') @include('components.td_image') @elseif($field->type == 'join') @include('components.td_join') @elseif ($field->type == 'currency') @include('components.td_currency') @elseif ($field->type == 'date') @include('components.td_date') @elseif ($field->type == 'number') @include('components.td_number') @else @endif @endforeach @endforeach
Action No{{ $header->alias }}
{{ $vcount }} @if ($field->link != '') {{ $detail->$string }}   @else {{ $detail->$string }} @endif
@if ($table_detail->count() > 0) Data {{ $table_detail->firstItem() }} - {{ $table_detail->lastItem() }} dari {{ $table_detail->total() }} data. @else Tidak ada data. @endif
{{ $table_detail->appends(request()->query())->links('pagination::bootstrap-4') }}
@if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') @include('js.' . $dmenu) @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush