@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Total Debit
{{ $periodLabel }}
Total Kredit
{{ $periodLabel }}
Saldo Saat Ini
Paket Tersedia
| Action | No | @foreach ($table_header as $header) @if ($header->list == '1' && $header->type != 'hidden'){{ $header->alias }} | @endif @endforeach
|---|---|---|
|
|
{{ $list->firstItem() + $loop->index }} | @foreach ($table_header as $header) @if ($header->list == '1' && $header->type != 'hidden')@if ($header->type == 'date') {{ $item->{$header->field} ? date('d/m/Y', strtotime($item->{$header->field})) : '-' }} @elseif ($header->type == 'currency') {{ $format->CurrencyFormat($item->{$header->field}) }} @elseif ($header->type == 'enum' && $header->field == 'type') @php $type_config = match ($item->{$header->field}) { 'debit' => [ 'class' => 'badge bg-success text-white', 'icon' => 'fas fa-arrow-up', ], 'kredit' => [ 'class' => 'badge bg-danger text-white', 'icon' => 'fas fa-arrow-down', ], default => [ 'class' => 'badge bg-secondary text-white', 'icon' => 'fas fa-question', ], }; @endphp {{ ucfirst($item->{$header->field}) }} @elseif ($header->field == 'isactive') @php $status_config = match ( $item->{$header->field} ) { '1' => [ 'class' => 'badge bg-success text-white', 'icon' => 'fas fa-check-circle', ], '0' => [ 'class' => 'badge bg-secondary text-white', 'icon' => 'fas fa-times-circle', ], default => [ 'class' => 'badge bg-secondary text-white', 'icon' => 'fas fa-question', ], }; @endphp {{ $item->{$header->field} == '1' ? 'Aktif' : 'Non-Aktif' }} @elseif ($header->type == 'text') {{ Str::limit($item->{$header->field}, 30) }} @else {{ $item->{$header->field} }} @endif | @endif @endforeach