@extends('layouts.app_operasi') @section('content') @php $pendingCount = collect($lines)->whereIn('status', ['IN_BATCH', 'OPS_REVIEW'])->count(); $approvedCount = collect($lines)->where('status', 'APPROVED')->count(); $cawName = $cawangan_info['nama'] ?? $cawangan_info['namacaw'] ?? $kodcaw; @endphp
@if(session()->has('message'))
{{ session('message') }}
@endif @if(session()->has('error'))
{{ session('error') }}
@endif
Batch No
{{ $batch['batch_no'] ?? '-' }}
Cawangan
{{ $cawName }} ({{ $kodcaw }})
Tarikh
{{ $batch['tarikh'] ?? '-' }}
Slot
{{ $batch['slot'] ?? '-' }}
Status
{{ $batch['status'] ?? '-' }}
Bilangan
{{ $batch['bilangan'] ?? count($lines) }}
Jumlah
RM {{ number_format((float)($batch['jumlah_keseluruhan'] ?? 0), 2) }}
Dihantar Oleh
{{ $batch['pc_submitted_by'] ?? '-' }}
Dihantar Pada
{{ $batch['submitted_at'] ?? '-' }}
Senarai Dalam Batch
Kembali @if($pendingCount > 0)
@csrf
@endif @if($approvedCount > 0) @endif
@forelse($lines as $line) @php $st = $line['status'] ?? ''; $badge = 'badge-secondary'; if ($st === 'APPROVED') $badge = 'badge-success'; elseif ($st === 'PAID') $badge = 'badge-dark'; elseif ($st === 'REJECTED_PC') $badge = 'badge-danger'; elseif (in_array($st, ['IN_BATCH', 'OPS_REVIEW'], true)) $badge = 'badge-primary'; @endphp @empty @endforelse
Status SAG Pelanggan No KP Bank No Akaun Nama Akaun Pinjaman (RM) Rujukan Bayaran Tindakan
{{ $st ?: '-' }} {{ $line['norujukan'] ?? '-' }} {{ $line['nama_pelanggan'] ?? '-' }} {{ $line['nokp'] ?? '-' }} {{ $line['nama_bank'] ?? $line['kodbank'] ?? '-' }} {{ $line['noakaun'] ?? '-' }} {{ $line['nama_akaun'] ?? '-' }} {{ number_format((float)($line['pinjaman'] ?? 0), 2) }} {{ $line['no_rujukan_bayaran'] ?? '-' }} @if(in_array($st, ['IN_BATCH', 'OPS_REVIEW'], true))
@csrf
@elseif($st === 'APPROVED') @elseif($st === 'PAID') Selesai @else - @endif
Tiada rekod dalam batch.
{{-- Reject modal --}} {{-- Paid line modal --}} {{-- Paid batch modal --}} @endsection