@extends('layouts.app') @section('title', 'Rekening & E-Wallet') @php $swatchColors = ['#0066AE','#003DA5','#003087','#F16522','#289748','#7B0C42','#EE3124','#FF6B00','#3b82f6','#64748b']; $bankPresets = [ 'BCA' => '#0066AE', 'BRI' => '#003DA5', 'Mandiri' => '#003087', 'BNI' => '#F16522', 'BSI' => '#289748', 'CIMB Niaga' => '#7B0C42', 'Danamon' => '#EE3124', 'Permata' => '#7D253E', 'BTN' => '#FF6B00', 'Maybank' => '#EFBA00', ]; $ewalletPresets = [ 'GoPay' => '#00AED6', 'OVO' => '#4C3494', 'DANA' => '#108BE3', 'ShopeePay' => '#EE4D2D', 'LinkAja' => '#E82529', 'Jenius' => '#2B2A6E', ]; @endphp @section('styles') @endsection @section('content')
{{-- Header --}}

Rekening & E-Wallet

{{-- Flash --}} @if(session('success'))
{!! session('success') !!}
@endif @if(session('error'))
{!! session('error') !!}
@endif {{-- Info banner --}}
Rekening & e-wallet aktif akan ditampilkan otomatis kepada pelanggan di halaman detail tagihan sebagai panduan transfer pembayaran. Yang dinonaktifkan tidak akan muncul di portal pelanggan.
{{-- Summary stats --}}
{{ $banks->count() }}
Rekening Bank
{{ $ewallets->count() }}
E-Wallet
{{ $banks->where('is_active', true)->count() + $ewallets->where('is_active', true)->count() }}
Aktif
{{ $banks->where('is_active', false)->count() + $ewallets->where('is_active', false)->count() }}
Nonaktif
{{-- Tabs --}}
{{-- ── Tab: Rekening Bank ── --}}
@if($banks->isEmpty())
Belum ada rekening bank
Klik Tambah lalu pilih tipe Rekening Bank.
@else
@foreach($banks as $acc) @php $abbr = strtoupper(substr(preg_replace('/\W/', '', $acc->bank_name), 0, 3)); @endphp
@include('bank-accounts._card', ['acc' => $acc, 'abbr' => $abbr])
@endforeach
@endif
{{-- ── Tab: E-Wallet ── --}}
@if($ewallets->isEmpty())
Belum ada e-wallet
Klik Tambah lalu pilih tipe E-Wallet.
@else
@foreach($ewallets as $acc) @php $abbr = strtoupper(substr(preg_replace('/\W/', '', $acc->bank_name), 0, 3)); @endphp
@include('bank-accounts._card', ['acc' => $acc, 'abbr' => $abbr])
@endforeach
@endif
{{-- /tab-content --}}
{{-- /container --}} {{-- ═══════════════════════ MODAL TAMBAH ═══════════════════════ --}} {{-- ═══════════════════════ MODAL EDIT ═══════════════════════ --}} {{-- ═══════════════════════ MODAL HAPUS ═══════════════════════ --}} @endsection @section('scripts') @endsection