@extends('layouts.app') @section('content')
@if(session()->has('message'))
{{ session('message') }}
@endif @if(session()->has('error'))
{{ session('error') }}
@endif @php $isMissing = !empty($modal['missing']); $isClosed = (int)($modal['ditutup'] ?? 0) === 1; $pendingReq = $modal['pending_request'] ?? null; if (is_object($pendingReq)) { $pendingReq = json_decode(json_encode($pendingReq), true); } @endphp @if($isClosed)
Modal online hari ini sudah ditutup (EOD).
@elseif($isMissing)
Belum ada had modal online hari ini. @if($pendingReq) Permohonan RM {{ number_format((float)($pendingReq['amaun'] ?? 0), 2) }} daripada {{ $pendingReq['dimohon_oleh'] ?? '-' }} masih PENDING. @else Mohon had di Had Modal Online. @endif
@elseif($pendingReq)
Permohonan tambah RM {{ number_format((float)($pendingReq['amaun'] ?? 0), 2) }} daripada {{ $pendingReq['dimohon_oleh'] ?? '-' }} menunggu kelulusan Operasi. Semak
@endif
Modal Online Hari Ini

@if(!empty($modal['missing'])) Belum ada had @else Baki RM {{ number_format((float)($modal['baki'] ?? 0), 2) }} @endif

@if(!empty($modal['missing'])) Tunggu kelulusan Operasi @else Digunakan RM {{ number_format((float)($modal['digunakan'] ?? 0), 2) }} / Had RM {{ number_format((float)($modal['had'] ?? 0) + (float)($modal['tambah'] ?? 0), 2) }} @endif
Queue PC

{{ count($lines) }} rekod

Jumlah RM {{ number_format((float)($queue['jumlah'] ?? 0), 2) }}
Slot Cadangan

{{ $slot['slot'] ?? '-' }}

{{ $slot['nota'] ?? '' }}
Senarai Menunggu (PENDING / REJECTED)
@csrf
@forelse($lines as $line) @empty @endforelse
Status SAG Pelanggan No KP Bank No Akaun Pinjaman (RM) Sebab Tolak Tindakan
@if(($line['status'] ?? '') === 'REJECTED_PC') REJECTED @else PENDING @endif {{ $line['norujukan'] ?? '-' }} {{ $line['nama_pelanggan'] ?? '-' }} {{ $line['nokp'] ?? '-' }} {{ $line['nama_bank'] ?? $line['kodbank'] ?? '-' }} {{ $line['noakaun'] ?? '-' }} {{ number_format((float)($line['pinjaman'] ?? 0), 2) }} {{ $line['reject_reason'] ?? '-' }}
Tiada rekod dalam queue.
Sejarah Batch
@forelse($batches as $batch) @empty @endforelse
Batch No Tarikh Slot Bil Jumlah (RM) Status Dihantar Oleh
{{ $batch['batch_no'] ?? '-' }} {{ $batch['tarikh'] ?? '-' }} {{ $batch['slot'] ?? '-' }} {{ $batch['bilangan'] ?? 0 }} {{ number_format((float)($batch['jumlah_keseluruhan'] ?? 0), 2) }} {{ $batch['status'] ?? '-' }} {{ $batch['pc_submitted_by'] ?? '-' }} Lihat
Belum ada batch.
{{-- Edit modal --}} @endsection