@extends('layouts.main') @section('breadcrumbs') {{ Breadcrumbs::render('laporan-closing-balance.show', $closingBalance) }} @endsection @section('content')

Detail Laporan Closing Balance

Informasi Rekening

{{ $closingBalance->account_number }}
@php $period = $closingBalance->period; if (strlen($period) === 8) { $formatted = substr($period, 6, 2) . '/' . substr($period, 4, 2) . '/' . substr($period, 0, 4); echo $formatted; } else { echo $period; } @endphp
{{ $closingBalance->updated_at ? $closingBalance->updated_at->format('d/m/Y H:i:s') : '-' }}
@php $clearedBalance = $closingBalance->cleared_balance ?? 0; echo 'Rp ' . number_format($clearedBalance, 2, ',', '.'); @endphp
@php $actualBalance = $closingBalance->actual_balance ?? 0; echo 'Rp ' . number_format($actualBalance, 2, ',', '.'); @endphp
@php $difference = $actualBalance - $clearedBalance; $sign = $difference >= 0 ? '+' : ''; echo $sign . 'Rp ' . number_format($difference, 2, ',', '.'); @endphp
@if($closingBalance->created_at || $closingBalance->updated_at)

Informasi Sistem

@if($closingBalance->created_at)
{{ $closingBalance->created_at->format('d/m/Y H:i:s') }}
{{ $closingBalance->created_at->diffForHumans() }}
@endif @if($closingBalance->updated_at)
{{ $closingBalance->updated_at->format('d/m/Y H:i:s') }}
{{ $closingBalance->updated_at->diffForHumans() }}
@endif
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush