@extends('layouts.main')
@section('content')
@if (!Auth::user()->hasRole(['penilai', 'surveyor', 'pemohon-ao', 'pemohon-eo']))
Dashboard
Selamat datang, {{ auth()->user()->name }}
@foreach ($dashboard['count_resume'] as $status => $count)
@php
$gradientFrom = $status === 'batal' ? 'from-red-50' : 'from-amber-50';
$gradientTo = $status === 'batal' ? 'to-red-100' : 'to-amber-100';
$borderColor = $status === 'batal' ? 'border-red-200' : 'border-amber-200';
$iconBg = $status === 'batal' ? 'bg-red-500' : 'bg-amber-500';
$iconColor = $status === 'batal' ? 'text-red-500' : 'text-amber-500';
$textColor = $status === 'batal' ? 'text-red-800' : 'text-amber-800';
$cardTitle = $status === 'batal' ? 'Batal dari Cabang' : 'Menunggu Keputusan Cabang';
@endphp
Jabodetabek
{{ $count['jabodetabek']['count_report'] ?? 0 }}
Luar Jabodetabek
{{ $count['non-jabodetabek']['count_report'] ?? 0 }}
@endforeach
|
Bulan
|
Jumlah
|
Akumulasi
|
@foreach ($dashboard['count_pendapatan'] as $month => $data)
|
{{ ucfirst($month) }}
|
{{ $data['total_jumlah'] ?? '-' }}
|
{{ $data['total_akumulasi'] ?? '-' }}
|
@endforeach
|
Bulan
|
Jabodetabek
|
Luar Jabodetabek
|
|
Laporan
|
Debitur
|
Laporan
|
Debitur
|
@foreach ($dashboard['count_lpj_internal'] as $month => $regions)
|
{{ ucfirst($month) }}
|
{{ $regions['jabodetabek']['total_laporan'] ?? '-' }}
|
{{ $regions['jabodetabek']['total_debiture'] ?? '-' }}
|
{{ $regions['non-jabodetabek']['total_laporan'] ?? '-' }}
|
{{ $regions['non-jabodetabek']['total_debiture'] ?? '-' }}
|
@endforeach
|
Bulan
|
Laporan
|
Debitur
|
@foreach ($dashboard['count_lpj_eksternal'] as $month => $data)
|
{{ ucfirst($month) }}
|
{{ $data['total_laporan'] ?? '-' }}
|
{{ $data['total_debiture'] ?? '-' }}
|
@endforeach
@endif
@endsection