@extends('admin.layouts.app') @section('title', 'Detail Akun Bank | TailorHub Admin') @section('content')

Detail Akun Bank

Kembali
@if (session('success')) @endif @if (session('error')) @endif

Informasi Akun Bank

Data Penjahit

Nama: {{ $bankAccount['user']['name'] }}

Email: {{ $bankAccount['user']['email'] }}

No. Telepon: {{ $bankAccount['user']['phone_number'] ?? '-' }}

Data Rekening

Nama Bank: {{ $bankAccount['bank_name'] }}

Nomor Rekening: {{ $bankAccount['account_number'] }}

Nama Pemilik: {{ $bankAccount['account_holder_name'] }}

Status: @if ($bankAccount['status'] == 'active') Diterima @elseif ($bankAccount['status'] == 'rejected') Ditolak @else {{ $bankAccount['status'] }} @endif

@if ($bankAccount['status'] == 'rejected' && $bankAccount['rejection_reason'])

Alasan Penolakan: {{ $bankAccount['rejection_reason'] }}

@endif

Tanggal Verifikasi: {{ \Carbon\Carbon::parse($bankAccount['verified_at'])->format('d M Y H:i') }}

Riwayat Penarikan

@forelse ($bankAccount['withdrawals'] ?? [] as $withdrawal) @empty @endforelse
ID Jumlah Status Bukti Pembayaran Tanggal Diproses Tanggal Dibuat
{{ $withdrawal['id'] }} Rp {{ number_format($withdrawal['amount'], 0, ',', '.') }} @if ($withdrawal['status'] == 'pending') Menunggu @elseif ($withdrawal['status'] == 'processing') Diproses @elseif ($withdrawal['status'] == 'completed') Selesai @elseif ($withdrawal['status'] == 'rejected') Ditolak @else {{ $withdrawal['status'] }} @endif @if ($withdrawal['proof_of_payment']) Lihat Bukti @else - @endif {{ $withdrawal['processed_at'] ? \Carbon\Carbon::parse($withdrawal['processed_at'])->format('d M Y H:i') : '-' }} {{ \Carbon\Carbon::parse($withdrawal['created_at'])->format('d M Y H:i') }}
Tidak ada riwayat penarikan untuk akun bank ini.
@endsection