@extends('layouts.admin') @section('content')

{{__('Complete Withdrawal')}}

@foreach($withdraws as $withdraw) @if($withdraw->user) @endif @endforeach
{{__('Transaction ID')}} {{__('User')}} {{__('Payment Method')}} {{__('Request Date')}} {{__('Note')}} {{__('Amount')}} {{__('Status')}}
{{$withdraw->transection_id}}
{{__('Name')}}: {{@$withdraw->user->student->name ?? $withdraw->user->instructor->name}}
{{__('Email')}}: {{@$withdraw->user->email}}
{{__('Phone')}}: {{@$withdraw->user->student->phone_number ?? $withdraw->user->instructor->phone_number}}
{{__('User Type')}}: @if(@$withdraw->user->role == 2 && @$withdraw->user->is_affiliator == 1) {{ __('Instructor & Affiliator') }} @elseif(@$withdraw->user->role == 3 && @$withdraw->user->is_affiliator == 1) {{ __('Student & Affiliator') }} @elseif(@$withdraw->user->role == 2) {{ __('Instructor') }} @endif
@if($withdraw->payment_method == 'buy')
{{__('Payment Method')}}: {{ __('Buy Course') }}
@else {!! getBeneficiaryDetails($withdraw->beneficiary) !!} @endif
{{$withdraw->created_at->format(get_option('app_date_format'))}} {{\Illuminate\Support\Str::words($withdraw->note, 3)}} @if(get_currency_placement() == 'after') {{$withdraw->amount}} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{$withdraw->amount}} @endif {{ __('Complete') }}
{{$withdraws->links()}}
@endsection @push('style') @endpush @push('script') @endpush