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

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

@csrf

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

{!! trans("message_lang.LBL_AMOUNT") !!}: {{ $details->amount ? number_format($details->amount, 2) : '' }} {{ $details->amount ? @$details->currency : '' }}
{!! trans("message_lang.LBL_BALANCE") !!}: {{ $details->agentLocation->balance ? number_format($details->agentLocation->balance, 2) : '' }} {{ $details->agentLocation->balance ? @$details->currency : '' }}
{!! trans("message_lang.BENEFICIARY_ACCOUNT") !!}: {{ $details->beneficiary_account }}
{!! trans("message_lang.LBL_LOCATION") !!}: {{ _set_dash($details->agentLocation->parent_id > 0 ? $details->agentLocation->network->name : $details->agentLocation->name) }}
{!! trans("message_lang.LBL_CODE") !!}: {{ $details->reference_no }}
{!! trans("message_lang.LBL_SENDER_LNAME") !!}: {{ _set_dash(@$details->sender_name) }}
{!! trans("message_lang.LBL_SENDER_PHONE_NUMBER") !!}: {{ _set_dash(@$details->sender_phone_number) }}
{!! trans("message_lang.LBL_DESCRIPTION") !!}: {{ $details->description }}
{!! trans("message_lang.LBL_USER") !!}: {{ _set_dash(@$details->agentLocationUser->first_name . ' ' . @$details->agentLocationUser->last_name) }}

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

@hasanyrole('administrator|customer service|marketing|operation|compliance|finance back office') @endhasanyrole @if (@$details->status != 'new') @endif
{!! trans('message_lang.LBL_TYPE') !!}: {{ $details->method }}
{!! trans('message_lang.LBL_STATUS') !!}: {{ _set_dash(ucfirst(@$details->status)) }}     @hasanyrole('administrator|operation|customer service') @if ($details->status == 'new' && $details->processed_by == 0) @elseif ($details->status == 'in progress' && $details->processed_by != auth()->guard('agentportal')->id()) @endif @endhasanyrole
{!! trans('message_lang.LBL_PAID_BY') !!}: {{ ($details->employeeUser) ? ucfirst(@$details->employeeUser->first_name) . ' ' . ucfirst(@$details->employeeUser->last_name) : '-' }}
{!! trans('message_lang.LBL_PAID_AT') !!}: {{ (($details->status == "completed" || $details->status == "rejected") && $details->updated_at) ? format_date_tz($details->updated_at) : '-' }}
{!! trans('message_lang.LBL_NOTES') !!}: {{ _set_dash(@$details->reject_reason) }}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection