@extends('admin.layouts.app') @section('title', 'Riwayat Penarikan Dana') @section('content')

Riwayat Penarikan Dana

@if (session('success')) @endif @if (session('error')) @endif
Reset
@if(empty($withdrawalHistory['data']))

Tidak ada riwayat penarikan

Tidak ada data penarikan yang selesai atau ditolak.

@else
@foreach($withdrawalHistory['data'] as $withdrawal) @endforeach
ID Nama Penjahit Bank No. Rekening Jumlah Status Tgl. Diproses Tgl. Dibuat Detail
{{ $withdrawal['id'] }} {{ $withdrawal['wallet']['user']['name'] }} {{ $withdrawal['bank_account']['bank_name'] }} {{ $withdrawal['bank_account']['account_number'] }} Rp {{ number_format($withdrawal['amount'], 0, ',', '.') }} @if($withdrawal['status'] == 'completed') Selesai @elseif($withdrawal['status'] == 'rejected') Ditolak @else {{ ucfirst($withdrawal['status']) }} @endif {{ \Carbon\Carbon::parse($withdrawal['processed_at'])->format('d M Y H:i') }} {{ \Carbon\Carbon::parse($withdrawal['created_at'])->format('d M Y H:i') }}
@endif
@endsection @push('scripts') @endpush