@extends('admin.layout') @section('content')
{{ __('Withdraw Requests') }}
@if (count($collection) == 0)

{{ __('NO WITHDRAW REQUEST FOUND') . '!' }}

@else
@foreach ($collection as $item) @php $vendor = $item->vendor()->first(); @endphp @if ($vendor) @endif @endforeach
# {{ __('Vendor') }} {{ __('Withdraw Id') }} {{ __('Method Name') }} {{ __('Total Amount') }} {{ __('Total Charge') }} {{ __('Total Payable Amount') }} {{ __('Status') }} {{ __('Action') }}
{{ $loop->iteration }}{{ $vendor->username }} {{ $item->withdraw_id }} {{ optional($item->method)->name }} {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }} {{ round($item->amount, 2) }} {{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }} {{ round($item->total_charge, 2) }} {{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} {{ $currencyInfo->base_currency_symbol_position == 'left' ? $currencyInfo->base_currency_symbol : '' }} {{ round($item->payable_amount, 2) }} {{ $currencyInfo->base_currency_symbol_position == 'right' ? $currencyInfo->base_currency_symbol : '' }} @if ($item->status == 0) {{ __('Pending') }} @elseif($item->status == 1) {{ __('Approved') }} @elseif($item->status == 2) {{ __('Declined') }} @endif {{ __('View') }} @if ($item->status == 0) {{ __('Approve') }} {{ __('Decline') }} @endif
@csrf
{{ $collection->appends([ 'search' => request()->input('search'), ])->links() }}
@endif
{{-- edit modal --}} @include('admin.withdraw.history.view') @endsection