@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100'])
{{-- section content --}}
@section('content')
@if (empty($selected_detail_month))
@include('layouts.navbars.auth.topnav', ['title' => ''])
@endif
| Divisi |
Curr |
Total |
@php $grandTotal = 0; @endphp
@foreach ($zrawByMatkl as $divisi => $items)
@php
$divisiId = Str::slug($divisi ?? 'Unknown', '_');
$divisiTotal = $items->sum('total_value');
$grandTotal += $divisiTotal;
@endphp
|
{{ $divisi ?? 'Tidak Diketahui' }}
({{ $items->count() }} item)
|
IDR |
{{ number_format($divisiTotal) }} |
@foreach ($items as $row)
| -
{{ $row->SHORT_TEXT ?? '-' }}
|
{{ number_format($row->total_value) }}
|
@endforeach
|
@endforeach
| TOTAL |
IDR |
{{ number_format($grandTotal) }} |
{{-- CARD 2: Summary Bulanan --}}
| Kategori |
Curr |
Total |
@php
$grandTotal = 0;
$topDivisi = $dibiayakanFullData->take(5);
$moreDivisi = $dibiayakanFullData->slice(5);
@endphp
@foreach ($topDivisi as $divisi => $items)
@php
$divisiId = 'top-' . Str::slug($divisi ?? 'Unknown', '_');
$divisiTotal = $items->sum('total_value');
$grandTotal += $divisiTotal;
@endphp
|
{{ $divisi ?? 'Tidak Diketahui' }}
({{ $items->count() }} item)
|
IDR |
{{ number_format($divisiTotal) }} |
@foreach ($items as $row)
| -
{{ $row->SHORT_TEXT ?? '-' }} |
{{ number_format($row->total_value) }}
|
@endforeach
|
@endforeach
@if ($moreDivisi->count())
|
|
@endif
@if ($moreDivisi->count())
@foreach ($moreDivisi as $divisi => $items)
@php
$divisiId = 'more-' . Str::slug($divisi ?? 'Unknown', '_');
$divisiTotal = $items->sum('total_value');
$grandTotal += $divisiTotal;
@endphp
|
{{ $divisi ?? 'Tidak Diketahui' }}
({{ $items->count() }} item)
|
IDR |
{{ number_format($divisiTotal) }} |
@foreach ($items as $row)
| -
{{ $row->SHORT_TEXT ?? '-' }} |
{{ number_format($row->total_value) }} |
@endforeach
|
@endforeach
@endif
| TOTAL |
IDR |
{{ number_format($grandTotal) }} |
| Kategori |
Curr |
Total |
@php
$grandTotal = 0;
$topDivisi = $hrgaFullData->take(5);
$moreDivisi = $hrgaFullData->slice(5);
@endphp
@foreach ($topDivisi as $divisi => $items)
@php
$divisiId = 'hrga-top-' . Str::slug($divisi ?? 'Unknown', '_');
$divisiTotal = $items->sum('total_value');
$grandTotal += $divisiTotal;
@endphp
|
{{ $divisi ?? 'Tidak Diketahui' }}
({{ $items->count() }} item)
|
IDR |
{{ number_format($divisiTotal) }} |
@foreach ($items as $row)
| -
{{ $row->SHORT_TEXT ?? '-' }} |
{{ number_format($row->total_value) }} |
@endforeach
|
@endforeach
@if ($moreDivisi->count())
|
|
@endif
@if ($moreDivisi->count())
@foreach ($moreDivisi as $divisi => $items)
@php
$divisiId = 'hrga-more-' . Str::slug($divisi ?? 'Unknown', '_');
$divisiTotal = $items->sum('total_value');
$grandTotal += $divisiTotal;
@endphp
|
{{ $divisi ?? 'Tidak Diketahui' }}
({{ $items->count() }} item)
|
IDR |
{{ number_format($divisiTotal) }} |
@foreach ($items as $row)
| -
{{ $row->SHORT_TEXT ?? '-' }} |
{{ number_format($row->total_value) }} |
@endforeach
|
@endforeach
@endif
| TOTAL |
IDR |
{{ number_format($grandTotal) }} |
@endsection
@push('js')
@endpush