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

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

@csrf

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

@if($transaction->is_payment_receive == $paymentReceivingStatus['refunded']) @endif
{!! trans('message_lang.LBL_PICKUP_CODE') !!}: {{ _set_dash(@$transaction->reference_no) }}
{!! trans('message_lang.LBL_SENDING_AMOUNT') !!}: {{ $transaction->sending_amount ? number_format($transaction->sending_amount, 2) : '' }} {{ $transaction->sending_amount ? $transaction->sending_currency : '' }}
{!! trans('message_lang.LBL_SENDING_FEES') !!}: {{ $transaction->sending_fees ? number_format($transaction->sending_fees, 2) : '' }} {{ $transaction->sending_fees ? $transaction->sending_currency : '' }}
{{ __('message_lang.LBL_TAX') }}: {{ $transaction->sending_tax ? number_format($transaction->sending_tax, 2) : '' }} {{ $transaction->sending_tax ? $transaction->sending_currency : '' }}
{!! trans('message_lang.LBL_RECEIVER_AMOUNT') !!}: {{ $transaction->receiving_amount ? number_format($transaction->receiving_amount, 2) : '' }} {{ $transaction->receiving_amount ? $transaction->receiving_currency : '' }}
{!! trans('message_lang.LBL_REFUNDED_AMOUNT') !!}: {{ $details->amount ? number_format($details->amount, 2) : '' }} {{ $details->amount ? $transaction->sending_currency : '' }}
{!! trans('message_lang.LBL_STATUS') !!}: @if($transaction->status == 1) Pending @elseif($transaction->status == 2) In progress @elseif($transaction->status == 3) Paid @elseif($transaction->status == 4) Rejected @elseif($transaction->status == 5) Cancelled @elseif($transaction->status == 6) Transmitted @elseif($transaction->status == 7) Failed @elseif($transaction->status == 8) Created @elseif($transaction->status == 9) On hold @else - @endif
{!! trans('message_lang.LBL_SENDER_PAYMENT_STATUS') !!}: @if($transaction->is_payment_receive == $paymentReceivingStatus['not_paid']) {{config('constants.send_money_txn_payment_receiving_status.NOT_PAID')}} @elseif($transaction->is_payment_receive == $paymentReceivingStatus['paid']) {{config('constants.send_money_txn_payment_receiving_status.PAID')}} @elseif($transaction->is_payment_receive == $paymentReceivingStatus['payment_failed']) {{config('constants.send_money_txn_payment_receiving_status.PAYMENT_FAILED')}} @elseif($transaction->is_payment_receive == $paymentReceivingStatus['refunded']) {{config('constants.send_money_txn_payment_receiving_status.REFUNDED')}} @if($transaction->refund_type ) {{$transaction->refund_type }} @endif @elseif($transaction->is_payment_receive == $paymentReceivingStatus['payment_in_progress']) {{config('constants.send_money_txn_payment_receiving_status.PAYMENT_IN_PROGRESS')}} @else - @endif
SOURCE {{$transaction->source }}
RECEIVING OPTION {{$transaction->receiving_option_code }}
{!! trans('message_lang.LBL_RECEIVED_AT') !!}: {{ $transaction->created_at ? format_date_tz($transaction->created_at) : '-' }}
{!! trans('message_lang.LBL_REASON') !!}: @if(isset($details->agent_comment) && $details->agent_comment != "") @if(isset($allReasons) && isset($allReasons[$details->agent_comment])) {{ $allReasons[$details->agent_comment] }} @else {{ str_replace("_", " ", @$details->agent_comment) }} @endif @else {{ _set_dash(@$details->agent_comment) }} @endif

{!! trans('message_lang.LBL_CANCELLATION_INFO') !!}

@error('failed') {{ $message }} @enderror @if (!empty($details->created_by)) @endif @if(@$details->approval_reason !== null) @endif @if (@$details->status != 'new') @endif
{!! trans('message_lang.LBL_STATUS') !!}: @if($details->status == 'in progress') {{ucfirst($statuses["in progress"]) }} @elseif($details->status == 'completed') {{ ucfirst($statuses["completed"]) }} @elseif($details->status == 'rejected') {{ ucfirst($statuses["rejected"]) }} @elseif($details->status == 'new') {{ ucfirst($statuses["new"]) }} @else - @endif
{!! trans('message_lang.LBL_CREATED_BY') !!}: @if ($details->createdBy != null) @if ($transaction->agentLocation) {{$details->createdBy != null ? @$details->createdBy->username. ' > ' . ucfirst(@$details->createdBy->first_name) . ' ' . ucfirst(@$details->createdBy->last_name) . ' | '. $details->created_by_type : "-"}} @else {{$details->createdBy != null ? @$details->createdBy->phone_number. ' > ' . ucfirst(@$details->createdBy->first_name) . ' ' . ucfirst(@$details->createdBy->last_name) . ' | ' . $details->created_by_type : "-"}} @endif @else - @endif
{!! trans('message_lang.LBL_CANCELLED_BY') !!}: {{ ($details->employeeUser) ? ucfirst(@$details->employeeUser->first_name) . ' ' . ucfirst(@$details->employeeUser->last_name) : '-' }}
{!! trans('message_lang.LBL_CANCELLED_AT') !!}: {{ $details->cancelled_at ? format_date_tz($details->cancelled_at) : '-' }}
{!! trans('message_lang.LBL_APPROVAL_REASON') !!} {{ _set_dash(@$details->approval_reason) }}
{!! trans('message_lang.STATUS_OPTION_REFUNDED_BY') !!} {{ $details->refundedBy !== null ? 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) : '-' }}
{!! trans('message_lang.LBL_NOTES') !!}: {{ _set_dash(@$details->admin_comment) }}

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

{!! trans('message_lang.LBL_SENDER_NAME') !!} {!! $transaction->sender_name !!}
{!! trans('message_lang.LBL_EMAIL') !!}: {!! $transaction->sender_email !!}
{!! trans('message_lang.LBL_PHONE') !!}: {!! $transaction->sender_phone_code !!} {!! $transaction->sender_phone_number !!}

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

{!! trans('message_lang.LBL_RECEIVER_NAME') !!} {!! $transaction->receiver_name !!}
{!! trans('message_lang.LBL_EMAIL') !!}: {!! $transaction->recipient_email !!}
{!! trans('message_lang.LBL_PHONE') !!}: {!! $transaction->recipient_phone_no !!}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection