@php $pickupText = 'Pickup Code'; if (isset($details->agentTransaction->user_id)){ //Case cashout $pickupText = 'Reference'; } @endphp
@if(@$details->agentCompany->code == 'Ria' && isset($details->agentTransaction->receiver_country) && $details->agentTransaction->receiver_country = config('constants.SN_COUNTRY_CODE')) @endif
BNB

@if (@$details->agentCompany->code != 'BNB') {{ @$details->agentCompany->name }} @endif

Agent's copy, payout receipt
Date {{ date('Y-m-d', strtotime($details->agentTransaction->paid_at)) }}
Agent Name {{ @$details->agentLocationUser->full_name }}
Agency Name {{ config('constants.SN_RIA_AGENCY_NAME') }}
Location {{ @$details->agentLocation->name }}
Sender
First Name Last Name 2nd Last Name
{{ @$details->agentTransaction->sender_first_name ?? '' }} {{ @$details->agentTransaction->sender_last_name ?? '' }}
Order No. {{ @$details->agentTransaction->order_id }}
{{ $pickupText }} {{ @$details->pickup_code }}
Country Phone Number
{{ @$details->agentTransaction->sender_country }} {{ @$details->agentTransaction->sender_mobile }}
Beneficiary     ID: {{ @$details->government_id_type }}    Number: {{ @$details->government_id_no }} Transfer Reason
First Name Last Name 2nd Last Name
{{ @$details->agentTransaction->receiver_first_name ?? '' }} {{ @$details->agentTransaction->receiver_last_name ?? '' }}
{{ @$details->agentTransaction->transfer_reason }}
Country Phone Number {{ trans("message_lang.LBL_DATE_OF_BIRTH") }}
{{ @$details->agentTransaction->receiver_country }} {{ @$details->agentTransaction->receiver_mobile }} {{ @$details->agentTransaction->receiver_dob }}
Exchange Rate Sent Amount Received Amount
{{ @$details->agentTransaction->exchange_rate }} {{ number_format(@$details->agentTransaction->sending_amount ?? 0, 2) }} {{ @$details->agentTransaction->sending_currency }} {{ number_format(@$details->agentTransaction->receiving_amount ?? 0, 2) }} {{ @$details->agentTransaction->receiving_currency }} @if (@$details->usd_amount > 0 || @$details->amount > 0)  (  {{ number_format(@$details->usd_amount, 2) }} USD @if (@$details->amount > 0)  + {{ number_format($details->amount, 2) }} {{ @$details->agentLocation->agentCountry->currency }} @endif  )  @endif
@if(!isset($details->signature) || empty($details->signature)) @endif @if(isset($details->signature) && !empty($details->signature)) @else @endif @if(@$details->agentCompany->code == 'Ria') @else @endif @if(!isset($details->signature) || empty($details->signature)) @endif @if(@$details->agentCompany->code == 'Ria') @else @endif
   
 
Client signature
______________ {{$details->agentLocationUser->first_name??""}} {{$details->agentLocationUser->last_name??""}} ______________ 
   
   
   
  Client Signature Agent SignatureAgent Signature 
   

@if(@$details->agentCompany->code == 'Ria' && isset($details->agentTransaction->receiver_country) && $details->agentTransaction->receiver_country = config('constants.SN_COUNTRY_CODE')) @endif
BNB

@if (@$details->agentCompany->code != 'BNB') {{ @$details->agentCompany->name }} @endif

Client's copy, payout receipt
Date {{ date('Y-m-d', strtotime($details->agentTransaction->paid_at)) }}
Agent Name {{ @$details->agentLocationUser->full_name }}
Agency Name {{ config('constants.SN_RIA_AGENCY_NAME') }}
Location {{ @$details->agentLocation->name }}
Sender
First Name Last Name 2nd Last Name
{{ @$details->agentTransaction->sender_first_name ?? '' }} {{ @$details->agentTransaction->sender_last_name ?? '' }}
Order No. {{ @$details->agentTransaction->order_id }}
{{ $pickupText }} {{ @$details->pickup_code }}
Country Phone Number
{{ @$details->agentTransaction->sender_country }} {{ @$details->agentTransaction->sender_mobile }}
Beneficiary     ID: {{ @$details->government_id_type }}    Number: {{ @$details->government_id_no }} Transfer Reason
First Name Last Name 2nd Last Name
{{ @$details->agentTransaction->receiver_first_name ?? '' }} {{ @$details->agentTransaction->receiver_last_name ?? '' }}
{{ @$details->agentTransaction->transfer_reason }}
Country Phone Number {{ trans("message_lang.LBL_DATE_OF_BIRTH") }}
{{ @$details->agentTransaction->receiver_country }} {{ @$details->agentTransaction->receiver_mobile }} {{ @$details->agentTransaction->receiver_dob }}
Exchange Rate Sent Amount Received Amount
{{ @$details->agentTransaction->exchange_rate }} {{ number_format(@$details->agentTransaction->sending_amount ?? 0, 2) }} {{ @$details->agentTransaction->sending_currency }} {{ number_format(@$details->agentTransaction->receiving_amount ?? 0, 2) }} {{ @$details->agentTransaction->receiving_currency }} @if (@$details->usd_amount > 0 || @$details->amount > 0)  (  {{ number_format(@$details->usd_amount, 2) }} USD @if (@$details->amount > 0)  + {{ number_format($details->amount, 2) }} {{ @$details->agentLocation->agentCountry->currency }} @endif  )  @endif
@if(!isset($details->signature) || empty($details->signature)) @endif @if(isset($details->signature) && !empty($details->signature)) @else @endif @if(@$details->agentCompany->code == 'Ria') @else @endif @if(!isset($details->signature) || empty($details->signature)) @endif @if(@$details->agentCompany->code == 'Ria') @else @endif
   
 
Client signature
______________ {{$details->agentLocationUser->first_name??""}} {{$details->agentLocationUser->last_name??""}} ______________ 
   
   
   
  Client Signature Agent SignatureAgent Signature