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

{{-- DESKTOP --}}
@foreach ($table_header as $header) @endforeach @foreach ($table_detail as $detail) @php $isUnread = isset($detail->is_read) && $detail->is_read == 0; $rowClass = $detail->isactive == '0' ? 'not' : ''; // inline style di tidak bisa override Bootstrap box-shadow di @foreach ($table_header as $field) @endforeach @endforeach
No{{ $header->alias }}
// jadi kita tandai saja dengan data attribute, styling di $tdBg = $detail->isactive == '0' ? 'box-shadow: inset 0 0 0 9999px #ffe9ed !important;' : ($isUnread ? 'box-shadow: inset 0 0 0 9999px #e8f4fd !important;' : ''); $tdFw = $isUnread ? 'font-weight: 700 !important; color: #1a1a1a !important;' : ''; @endphp
{{ $table_detail->firstItem() + $loop->index }} {{ $detail->{$field->field} ?? '-' }}
Data {{ $table_detail->firstItem() }} - {{ $table_detail->lastItem() }} dari {{ $table_detail->total() }} data.
{{ $table_detail->appends(request()->query())->links('pagination::bootstrap-4') }}
{{-- MOBILE --}}
@if ($authorize->excel == '1') Excel @endif @if ($authorize->pdf == '1') PDF @endif
@foreach ($table_detail as $detail) @php $primary = ''; foreach ($table_primary as $p) { $primary == '' ? ($primary = $detail->{$p->field}) : ($primary .= ':' . $detail->{$p->field}); } $isUnread = isset($detail->is_read) && $detail->is_read == 0; $cardClass = $detail->isactive == '0' ? 'border-danger' : ($isUnread ? 'border-primary' : ''); $cardStyle = $detail->isactive == '0' ? 'background-color:#ffe9ed;' : ($isUnread ? 'background-color:#e8f4fd;' : ''); @endphp
#{{ $table_detail->firstItem() + $loop->index }} @if ($detail->isactive == '0') Non Aktif @endif @if ($isUnread) @endif
@foreach ($table_header as $field)
{{ $field->alias }}
{{ $detail->{$field->field} ?? '-' }}
@endforeach
@endforeach
Data {{ $table_detail->firstItem() }} - {{ $table_detail->lastItem() }} dari {{ $table_detail->total() }} data.
{{ $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