@extends('backend.master') @section('title', 'Edit Withdraw #'.$withdraw->id) @push('styles') {{-- Bootstrap Icons --}} @endpush @section('content') @php if ($withdraw->status === 'pending') { $statusClass = 'badge-pending'; $statusLabel = 'Pending'; } elseif ($withdraw->status === 'approved') { $statusClass = 'badge-approved'; $statusLabel = 'Approved'; } else { $statusClass = 'badge-rejected'; $statusLabel = 'Rejected'; } $isBank = str_starts_with($withdraw->method, 'bank:'); @endphp
Withdraw Request #{{ $withdraw->id }}
User: {{ $withdraw->user?->name ?? 'N/A' }} · {{ $withdraw->user?->email ?? '—' }}
{{ $statusLabel }} Back to list
{{-- Request info --}}
Request info
Base information about this withdraw request.
User
{{ $withdraw->user?->name ?? 'N/A' }}
{{ $withdraw->user?->email ?? '—' }}
Requested at
{{ $withdraw->created_at->format('d M, Y H:i') }}
Amount
{{ number_format($withdraw->amount) }} BDT
Method type
@if($isBank) Bank @else Mobile @endif
{{ $withdraw->method }}
Account
{{ $withdraw->account_number }}
@if($withdraw->account_holder)
Holder: {{ $withdraw->account_holder }}
@endif @if($withdraw->branch_name)
Branch: {{ $withdraw->branch_name }}
@endif
@if($withdraw->trx_id)
TRX ID
{{ $withdraw->trx_id }}
@endif
{{-- Update form --}}
@csrf @method('PUT')
Update status
Change status & optionally add transaction id.
@error('status')
{{ $message }}
@enderror
Rejected করলে ইউজারের balance-এ আবার amount refund হবে (controller এ already হ্যান্ডেল করা আছে)।
@error('trx_id')
{{ $message }}
@enderror
Approved করলে TRX ID দিলে ইউজারের জন্য রেকর্ডটা পরিষ্কার থাকবে।
@endsection