@extends("agentportal.layouts.layout") @section("title", trans("message_lang.LBL_ACC_STATEMENTS")) @section("page_style") @endsection @section("content")

{!! trans("message_lang.LBL_ACC_STATEMENTS") !!}

@hasanyrole('location administrator|main teller')

@if(isset(auth()->guard('agentportal')->user()->agentLocation) && auth()->guard('agentportal')->user()->agentLocation->parent_id == 0) @endif

@endhasanyrole
@hasanyrole('administrator|operation|compliance|finance back office|tresorerie') @if (request('location_id')) {!! trans("message_lang.BTN_REPAYMENT") !!}
{!! trans("message_lang.BTN_ADJUSTMENT") !!}
{{ trans('message_lang.BTN_BACK') }} @else Prefund
@hasanyrole('administrator|finance back office') Agent Deposit
{!! trans("message_lang.BTN_ADJUSTMENT") !!}
@endhasanyrole {!! trans("message_lang.BTN_REPAYMENT") !!}
{!! trans("message_lang.BTN_EXPENSES") !!}
{!! trans("message_lang.BTN_REFUND_SEND_TRANSACTION") !!} @endif @else @hasanyrole('main teller|supervisor|teller') @if (auth()->guard('agentportal')->user()->agentLocation->enable_agent_topup == true && (auth()->guard('agentportal')->user()->agentLocation->parent_id == 0 || auth()->guard('agentportal')->user()->agentLocation->network->enable_agent_topup == true)) Agent Topup
@endif @endhasanyrole {{ trans('message_lang.BTN_BACK') }} @endhasanyrole @hasanyrole('administrator|tresorerie')
{!! trans("message_lang.BTN_BULK_REPAYMENT") !!} @endhasanyrole
@csrf
@if(count($agentCountries) > 1) @endif
@hasanyrole('administrator|operation|compliance|finance back office|tresorerie')
@else @endhasanyrole
@include('agentportal.layouts.date_filter_v1')
@if($accounts)
@endif
@forelse ($accounts as $key => $account) @empty @endforelse
# {!! trans("message_lang.LBL_DATE") !!} {!! trans("message_lang.LBL_LOCATION_CODE") !!} {!! trans("message_lang.LBL_LOCATION") !!} {!! trans("message_lang.LBL_TXN_TYPE") !!} {!! trans("message_lang.LBL_REFERENCE") !!} {!! trans("message_lang.LBL_PAID_AT") !!} {!! trans("message_lang.LBL_COMPANY") !!} {!! trans("message_lang.LBL_CREDIT") !!} {!! trans("message_lang.LBL_DEBIT") !!} {!! trans("message_lang.LBL_BALANCE") !!}
{!! $key + 1 !!} {!! format_date_tz($account->created_at) !!} {!! (isset($account->agent_location_code) && $account->agent_location_code != '') ? $account->agent_location_code : "-" !!} {!! (isset($account->agent_location_name) && $account->agent_location_name != '') ? $account->agent_location_name : "-" !!} @if(Auth::guard('agentportal')->user()->hasAnyRole('finance back office|administrator|operation|compliance|customer service|finance back office|bussiness development|tresorerie') && in_array($account->transaction_type, ['repayment', 'adjustment', 'expense','topup'])) @if($request->has('fromSponsoredBanks') && $request->fromSponsoredBanks == 1) {!! isset($types[$account->transaction_type]) ? $types[$account->transaction_type] : "" !!} @else {!! isset($types[$account->transaction_type]) ? $types[$account->transaction_type] : "" !!} @endif @else {!! isset($types[$account->transaction_type]) ? $types[$account->transaction_type] : "" !!} @endif @if($account->transaction_type == 'paid' && $account->agent_paid_transaction_id > 0) @if($account->agent_transaction_id != '') @if($request->has('fromSponsoredBanks') && $request->fromSponsoredBanks == 1) {!! $account->reference !!} @else {!! $account->reference !!} @endif @else {!! $account->reference !!} @endif @elseif($account->transaction_type == 'sent' && $account->agent_paid_transaction_id == 0) @if($account->send_money_transaction_id != '') @if($request->has('fromSponsoredBanks') && $request->fromSponsoredBanks == 1) {!! $account->reference !!} @else {!! $account->reference !!} @endif @else {!! $account->reference !!} @endif @else {!! $account->reference !!} @endif {!! isset($account->paid_at) ? format_date_tz($account->paid_at) : '-' !!} {!! $account->agent_company_code !!} {!! $account->credit_amount > 0 ? '' . number_format($account->credit_amount, 2) . '' : '' !!} {!! $account->debit_amount > 0 ? '' . number_format($account->debit_amount, 2) . '' : '' !!} {!! number_format($account->balance, 2) !!}
{!! trans('message_lang.DATATABLE_LBL_NO_DATA_AVAILABLE') !!}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection