@extends('admin.layout') @section('content')
{{ __('admin.dashboard') }} {{ __('general.withdrawals') }} ({{$data->total()}})
@if (session('success_message')) @endif
@if ($data->total() != 0 && $data->count() != 0) @foreach ($data as $withdrawal) @endforeach @else
{{ trans('general.no_results_found') }}
@endif
ID {{ trans('admin.user') }} {{ trans('admin.amount') }} {{ trans('admin.method') }} {{ trans('admin.status') }} {{ trans('admin.date') }} {{ trans('admin.actions') }}
{{ $withdrawal->id }} @if (isset($withdrawal->user()->username)) {{ $withdrawal->user()->username }} @else {{ __('general.no_available') }} @endif {{ Helper::amountFormatDecimal($withdrawal->amount) }} {{ $withdrawal->gateway == 'Bank' ? trans('general.bank_transfer') : $withdrawal->gateway }} @if ($withdrawal->status == 'paid') {{trans('general.paid')}} @else {{trans('general.pending_to_pay')}} @endif {{ date('d M, Y', strtotime($withdrawal->date)) }} {{trans('admin.view')}}
@if ($data->lastPage() > 1) {{ $data->links() }} @endif
@endsection