@extends('panel::layouts.app') @section('body-class', '') @section('title', __('panel/withdrawal.customer_withdrawals')) @section('content')
@if ($withdrawals->count())
@hookinsert('panel.withdrawals.index.thead.bottom') @foreach($withdrawals as $item) @hookinsert('panel.withdrawals.index.tbody.bottom', $item) @endforeach
{{ __('panel/common.id') }} {{ __('panel/withdrawal.customer_name') }} {{ __('panel/withdrawal.customer_email') }} {{ __('panel/withdrawal.amount') }} {{ __('panel/withdrawal.account_type') }} {{ __('panel/withdrawal.account_number') }} {{ __('panel/withdrawal.status') }} {{ __('panel/withdrawal.created_at') }}{{ __('panel/common.actions') }}
{{ $item->id }} {{ $item->customer->name ?? '' }} {{ $item->customer->email ?? '' }} {{ currency_format($item->amount) }} {{ $item->account_type_format }} {{ substr($item->account_number, 0, 6) }}****{{ substr($item->account_number, -4) }} @switch($item->status) @case('pending') {{ $item->status_format }} @break @case('approved') {{ $item->status_format }} @break @case('paid') {{ $item->status_format }} @break @case('rejected') {{ $item->status_format }} @break @default {{ $item->status_format }} @endswitch {{ $item->created_at->format('Y-m-d H:i') }}
{{ $withdrawals->withQueryString()->links('panel::vendor/pagination/bootstrap-4') }} @else @endif
@endsection @push('footer') @endpush