@extends("agentportal.layouts.layout") @section("title", trans("message_lang.LBL_ACCOUNTING_REQUESTS")) @section("page_style")
@endsection
@section("content")
{!! trans("message_lang.LBL_ACCOUNTING_REQUESTS") !!}
@hasanyrole('administrator|finance back office') @if (request('agent_location_id'))
false
@else
true
@endif @endhasanyrole
@csrf
{!! trans("message_lang.LBL_EXPORT_TO_CSV") !!}
{!! trans("message_lang.LBL_SEARCH_FIELD") !!}
{!! trans("message_lang.PLACEHOLDER_SELECT") !!}
has('search_field') && $request->search_field == "reference" ? 'selected' : '' }}>Reference
{!! trans("message_lang.LBL_SEARCH_KEY") !!}
@if(count($agentCountries) > 0)
@else
@endif @if(count($agentCountries) > 0)
{!! trans("message_lang.LBL_COUNTRY") !!}
@endif
{!! trans("message_lang.PLACEHOLDER_SELECT") !!}
@foreach ($agentCountries as $key => $agentCountry)
has('agent_country_id') && $request->agent_country_id == $key ? 'selected' : '' }}>{{ $agentCountry }}
@endforeach
@hasanyrole('administrator|finance back office')
{!! trans("message_lang.LBL_LOCATION") !!}
{!! trans("message_lang.PLACEHOLDER_SELECT") !!}
@foreach ($agentLocations as $key => $agentLocation)
has('agent_location_id') && $request->agent_location_id == $key ? 'selected' : '' }} @if ($key == $agentNetworkId) selected @endif>{{ $agentLocation }}
@endforeach
@endhasanyrole
{!! trans("message_lang.LBL_TYPE") !!}
{!! trans("message_lang.PLACEHOLDER_SELECT") !!}
has('accounting_type') && $request->accounting_type == "adjustment" ? 'selected' : '' }}>{{ ucfirst("adjustment") }}
has('accounting_type') && $request->accounting_type == "topup" ? 'selected' : '' }}>{{ ucfirst("topup") }}
has('accounting_type') && $request->accounting_type == "agent_deposit" ? 'selected' : '' }}>{{ ucfirst("Agent Deposit") }}
{!! trans("message_lang.LBL_STATUS") !!}
{!! trans("message_lang.PLACEHOLDER_SELECT") !!}
has('status') && $request->status == "0" ? 'selected' : '' }}>{{ ucfirst("Pending") }}
has('status') && $request->status == "1" ? 'selected' : '' }}>{{ ucfirst("Approved") }}
has('status') && $request->status == "2" ? 'selected' : '' }}>{{ ucfirst("Rejected") }}
@include('agentportal.layouts.date_filter_v1')
{!! trans("message_lang.BTN_SEARCH") !!}
{!! trans("message_lang.BTN_CLEAR_SEARCH") !!}
@if($accounts)
{!! trans('message_lang.DATATABLE_LBL_SHOW') !!}
has('per_page') && $request->per_page == "10" ? 'selected' : '' !!} {!! !$request->has('per_page') ? 'selected' : '' !!}>10
has('per_page') && $request->per_page == "50" ? 'selected' : '' !!}>50
has('per_page') && $request->per_page == "100" ? 'selected' : '' !!}>100
has('per_page') && $request->per_page == $accounts->total() ? 'selected' : '' !!}>All
{!! trans('message_lang.DATATABLE_LBL_ENTRIES') !!}
@endif @forelse ($accounts as $key => $account) @empty @endforelse
#
{!! trans("message_lang.LBL_DATE") !!}
{!! trans("message_lang.LBL_REFERENCE") !!}
{!! trans("message_lang.LBL_COUNTRY") !!}
{!! trans("message_lang.LBL_LOCATION") !!}
{!! trans("message_lang.LBL_TYPE") !!}
{!! trans("message_lang.LBL_CREDIT") !!}
{!! trans("message_lang.LBL_DEBIT") !!}
{!! trans("message_lang.LBL_STATUS") !!}
{!! trans("message_lang.LBL_INITIATED_BY") !!}
{!! trans("message_lang.LBL_PROCESSED_BY") !!}
{!! trans("message_lang.LBL_ACTION") !!}
{!! $key + 1 !!}
{!! format_date_tz($account->created_at) !!}
{!! isset($account->reference) ? $account->reference : "" !!}
{!! isset($account->agent_country_name) ? $account->agent_country_name : "" !!}
{!! (isset($account->agent_location_name) && $account->agent_location_name != '') ? $account->agent_location_name : "-" !!}
{!! isset($account->accounting_type) ? $account->accounting_type : "" !!}
{!! $account->credit_amount > 0 ? '
' . number_format($account->credit_amount, 2) . '
' : '0' !!} {!! isset($account->currency) ? $account->currency : "" !!}
{!! $account->debit_amount > 0 ? '
' . number_format($account->debit_amount, 2) . '
' : '0' !!} {!! isset($account->currency) ? $account->currency : "" !!}
@if(isset($account->status) && $account->status == 1)
{!! "Approved" !!}
@elseif(isset($account->status) && $account->status == 2)
{!! "Rejected" !!}
@else
{!! "Pending" !!}
@endif
{!! isset($account->initiated_by) ? $account->initiated_by : "-" !!}
{!! isset($account->processed_by) ? $account->processed_by : "-" !!}
{{"View"}}
{!! trans('message_lang.DATATABLE_LBL_NO_DATA_AVAILABLE') !!}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection