@extends('layouts.app') @section('title', 'Pengajuan — Monitoring') @section('content')
{{-- Filter bar --}}
@if(request()->hasAny(['q', 'bulan'])) @endif
{{-- Desktop table --}}
@forelse($batches as $i => $batch) @php $total = $batch->pengajuan->count(); $draftCount = $batch->pengajuan->where('status', 'draft')->count(); $doneCount = $total - $draftCount; $pct = $total > 0 ? round($doneCount / $total * 100) : 0; @endphp @empty @endforelse
# Nama Kelompok Ronde Jml Debitur Progress PL Tgl Dibuat
{{ $batches->firstItem() + $i }} {{ $batch->kelompok->nama ?? '-' }} {{ $batch->created_at->translatedFormat('M Y') }} {{ $total }}
{{ $doneCount }}/{{ $total }}
@if($doneCount === $total && $total > 0) Menunggu submit PL @endif
{{ $batch->created_at->format('d M Y') }} Lihat
{{-- Mobile card list --}}
@forelse($batches as $batch) @php $total = $batch->pengajuan->count(); $draftCount = $batch->pengajuan->where('status', 'draft')->count(); $doneCount = $total - $draftCount; $pct = $total > 0 ? round($doneCount / $total * 100) : 0; @endphp
{{ $batch->kelompok->nama ?? '-' }}
Ronde {{ $batch->created_at->translatedFormat('M Y') }} · {{ $total }} debitur
{{ $doneCount }}/{{ $total }} selesai
@if($doneCount === $total && $total > 0) Menunggu submit PL @endif
@empty @endforelse
{{-- Pagination --}} @if($batches->hasPages())
{{ $batches->links() }}
@endif
@endsection