@extends('backEnd.layouts.master') @section('title', 'Vendor Withdrawals') @section('css') @endsection @section('content')
Manage vendor payout requests.
| # | Vendor Details | Amount | Method | Account Info | Request Date | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- Vendor --}}
{{ $row->vendor->shop_name ?? 'Unknown Shop' }}
{{ $row->vendor->owner_name ?? '' }}
|
{{-- Amount --}}
৳{{ number_format($row->amount, 2) }} | {{-- Method --}}@if($row->payout_method == 'bank') @elseif(in_array($row->payout_method, ['bkash', 'nagad', 'rocket'])) @else @endif {{ ucfirst($row->payout_method) }} | {{-- Account Info --}}
@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
|
{{-- Date --}}
{{ $row->created_at->format('d M, Y') }}
{{ $row->created_at->format('h:i A') }}
|
{{-- Status --}}
@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
|
{{-- Actions --}}
@if($row->status === 'pending')
-
@endif
{{-- Approve Modal --}}
{{-- Reject Modal --}}
|