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

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

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

@if (isset($details->fees)) @endif @if ($details->payment_method == 'CashPickUp') @endif {{-- --}}
{!! trans("message_lang.LBL_AMOUNT") !!}: {{ $details->amount ? number_format($details->amount, 2) : '' }} {{ $details->amount ? @$details->currency : '' }}
{!! trans("message_lang.LBL_FEES") !!}: {{ number_format($details->fees, 2) }} {{ $details->balance ? @$details->currency : '' }}
{!! trans("message_lang.LBL_BALANCE") !!}: {{ $details->balance ? number_format($details->balance, 2) : '' }} {{ $details->balance ? @$details->currency : '' }}
{!! trans("message_lang.LBL_LOCATION") !!}: {{ _set_dash($details->agentLocation->parent_id > 0 ? $details->agentLocation->network->name : $details->agentLocation->name) }}
{!! trans("message_lang.LBL_PICKUP_CODE") !!}: {{ $details->pickup_code }}
Sub-Location: {{ _set_dash(@$details->agentLocation->name) }}
{!! trans("message_lang.LBL_USER") !!}: {{ _set_dash(@$details->agentLocationUser->first_name . ' ' . @$details->agentLocationUser->last_name) }}
{!! trans("message_lang.LBL_COMMENTS") !!}: {{ _set_dash(@$details->agent_comment) }}

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

@if (isset($details->beneficiary_first_name) || isset($details->beneficiary_last_name)) @endif {{-- @hasanyrole('administrator|tresorerie') --}} @if ($details->payment_method == config('constants.REPAYMENT_METHOD')['MANUAL_WALLET']) @endif {{-- @endhasanyrole --}} @if (isset($details->reception_location)) @endif @if (isset($details->repayment_reference)) @endif @if (isset($details->transaction_reference)) @endif @if (@$details->status != 'new') @endif @if(@$details->refunded_at) @endif @if(@$details->refunded_at) @endif
{!! trans('message_lang.LBL_TYPE') !!}: {{ $details->payment_method }}
{!! trans('message_lang.LBL_BENEFICIARY') !!}: {{ $details->beneficiary_first_name.' '.$details->beneficiary_last_name }}
{!! trans('message_lang.LBL_MOBILE_WALLET_NUMBER') !!}: {{ $walletNumber }}
{!! trans('message_lang.LBL_STATUS') !!}: {{ _set_dash(ucfirst(@$details->status)) }}     {{ @$details->refunded_at ? '(Refunded)' : '' }} @if($details->cancellation_requested == 1) {!! trans('message_lang.LBL_CANCELLATION_REQUEST') !!} @endif @hasanyrole('administrator|operation|finance back office') @if (@$details->status == 'expired' && (@$details->payment_method == config('constants.REPAYMENT_METHOD')['CASH_PICKUP']) && ( @$details->cancellation_requested != 1 && $details->refunded_at == null )) @endif @endhasanyrole @hasanyrole('administrator|operation|tresorerie') @if(($details->payment_method == config('constants.REPAYMENT_METHOD')['MANUAL_WALLET'] || $details->payment_method == config('constants.REPAYMENT_METHOD')['BNB']) && in_array($details->status, ['new'])) @endif @endhasanyrole
{!! trans('message_lang.LBL_PAID_BY') !!}: {{ isset($details->employeeUser->agentLocation) ? ($details->employeeUser->agentLocation->name." > ") : "" }} {{ ($details->employeeUser) ? ucfirst(@$details->employeeUser->first_name) . ' ' . ucfirst(@$details->employeeUser->last_name) : '-' }}
{!! trans('message_lang.LBL_PAID_AT') !!}: {{ $details->paid_at ? format_date_tz($details->paid_at) : '-' }}
{!! trans('message_lang.LBL_RECEIVE_AT') !!}: {{ $receptionLocations[@$details->reception_location] }}
{!! trans('message_lang.REPAYMENT_REFERENCE') !!}: {{ @$details->repayment_reference }}
{!! trans('message_lang.TRANSACTION_REFERENCE') !!}: {{ @$details->transaction_reference }}
{!! trans('message_lang.LBL_NOTES') !!}: {{ _set_dash(@$details->admin_comment) }}
{!! trans('message_lang.LBL_REFUNDED_BY') !!}: {{ $details->refundedBy ? ucfirst(@$details->refundedBy->first_name) . ' ' . ucfirst(@$details->refundedBy->last_name) : '-' }}
{!! trans('message_lang.LBL_REFUNDED_AT') !!}: {{ $details->refunded_at ? format_date_tz($details->refunded_at) : '-' }}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection