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

Detail periode pencairan

@foreach ($table_header_l as $header)
{{ $header->alias }}:
@if ($header->field == 'id') {{ $list->{$header->field} }} @elseif ($header->field == 'periode_pencairan') @php $months = [ 1 => 'Januari', 2 => 'Februari', 3 => 'Maret', 4 => 'April', 5 => 'Mei', 6 => 'Juni', 7 => 'Juli', 8 => 'Agustus', 9 => 'September', 10 => 'Oktober', 11 => 'November', 12 => 'Desember', ]; $periode = $list->periode_pencairan; if (strlen($periode) >= 6) { $bulan = (int) substr($periode, 0, 2); $tahun = substr($periode, 2, 4); echo ($months[$bulan] ?? $bulan) . ' ' . $tahun; } else { echo $periode; } @endphp @elseif ($header->type == 'date') {{ $list->{$header->field} ? $format->DateFormat($list->{$header->field}, 'd/m/Y') : '-' }} @elseif ($header->type == 'currency') {{ $format->CurrencyFormat($list->{$header->field} ?? 0) }} @elseif ($header->type == 'enum' && $header->query) @php $options = DB::select($header->query); $displayValue = $list->{$header->field}; foreach ($options as $option) { $optionArray = array_values((array) $option); if ($optionArray[0] == $list->{$header->field}) { $displayValue = $optionArray[1] ?? $optionArray[0]; break; } } @endphp {{ $displayValue }} @else {{ $list->{$header->field} ?: '-' }} @endif
@endforeach
Informasi Sistem

Status dan informasi sistem

@foreach ($table_header_r as $header)
{{ $header->alias }}:
@if ($header->field == 'isactive') @if ($list->isactive == '1') Aktif @else Non-Aktif @endif @elseif ($header->type == 'date') {{ $list->{$header->field} ? $format->DateFormat($list->{$header->field}, 'd/m/Y') : '-' }} @elseif ($header->type == 'currency') {{ $format->CurrencyFormat($list->{$header->field} ?? 0) }} @elseif ($header->type == 'enum' && $header->query) @php $options = DB::select($header->query); $displayValue = $list->{$header->field}; foreach ($options as $option) { $optionArray = array_values((array) $option); if ($optionArray[0] == $list->{$header->field}) { $displayValue = $optionArray[1] ?? $optionArray[0]; break; } } @endphp {{ $displayValue }} @else {{ $list->{$header->field} ?: '-' }} @endif
@endforeach
Dibuat:
{{ $list->created_at->format('d/m/Y H:i:s') }}
Diupdate:
{{ $list->updated_at->format('d/m/Y H:i:s') }}
User Create:
{{ $list->user_create ?? '-' }}
User Update:
{{ $list->user_update ?? '-' }}
Data Terkait

Informasi data yang terkait dengan periode ini

@php $piutangCount = \App\Models\TrsPinjaman::where( \App\Models\TrsPinjaman::FIELD_PERIODE, $list->periode_pencairan, )->count(); @endphp
Piutang Terkait
{{ $piutangCount }} Data
@if ($piutangCount > 0)
Perhatian: Periode ini memiliki {{ $piutangCount }} data piutang terkait. Hati-hati saat mengubah status periode karena dapat mempengaruhi data piutang yang sudah ada.
@else
Informasi: Tidak ada data piutang yang terkait dengan periode ini. Periode ini aman untuk diubah atau dihapus.
@endif
@if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('css') @endpush @push('js') @endpush