@extends('backEnd.layouts.master') @section('title', 'Vendor Withdrawals') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Withdrawals

Manage vendor payout requests.

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@foreach($data as $key => $row) {{-- Vendor --}} {{-- Amount --}} {{-- Method --}} {{-- Account Info --}} {{-- Date --}} {{-- Status --}} {{-- Actions --}} @endforeach
# Vendor Details Amount Method Account Info Request Date Status Actions
{{ $loop->iteration }}
{{ $row->vendor->shop_name ?? 'Unknown Shop' }} {{ $row->vendor->owner_name ?? '' }}
৳{{ number_format($row->amount, 2) }} @if($row->payout_method == 'bank') @elseif(in_array($row->payout_method, ['bkash', 'nagad', 'rocket'])) @else @endif {{ ucfirst($row->payout_method) }}
@if($row->account_name)
{{ $row->account_name }}
@endif @if($row->account_number)
{{ $row->account_number }}
@endif @if($row->note)
"{{ Str::limit($row->note, 20) }}"
@endif
{{ $row->created_at->format('d M, Y') }}
{{ $row->created_at->format('h:i A') }}
@if($row->status === 'approved') Approved @if($row->processed_at)
{{ $row->processed_at->format('d M, Y') }}
@endif @elseif($row->status === 'rejected') Rejected @else Pending @endif
@if($row->status === 'pending')
@else
-
@endif {{-- Approve Modal --}} {{-- Reject Modal --}}
{{-- Pagination --}}
Showing {{ $data->firstItem() }} to {{ $data->lastItem() }} of {{ $data->total() }} requests
{{ $data->links('pagination::bootstrap-4') }}
@endsection @push('scripts') {{-- FontAwesome for specific icons if needed --}} @endpush