@section('description-USD') @if($paymentRequest->payment_type == 'Local Charges') @forelse($paymentRequest->payment_fee as $item) @if($item->currencies_id == '148') @php $realFeeQuantity = App\Http\Controllers\PaymentRequestOperationalController::feeQuantity($paymentRequest->id, $item->id) @endphp @endif @endforeach
Payment Description - USD:

Loss

Charge
Buyer

{!! $item->descricao ? $item->descricao : '-' !!}

Unit Price:

{!! ( $item->currencies_id == 148 ? 'USD' : 'BRL')!!} {!! $item->price ? $item->price : '-' !!}

Total Amount:

{!! ( $item->currencies_id == 148 ? number_format((($item->price) * ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty))),2,'.','') : number_format($item->price * ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty)),2,'.','') ) !!} x {!! ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty)) !!}

{{ $item->itemLoss == 'on' ? 'Yes' : 'No' }}

{{ $item->itemLoss == 'on' ? 'No' : 'Yes'}}


Total USD: $ {!! $paymentRequest->amount ? $paymentRequest->amount : '-' !!}
@endif @endsection @section('description-BRL-part1') @if($paymentRequest->payment_type == 'Local Charges') @foreach($paymentRequest->payment_fee as $item) @if($item->currencies_id == '21') @php $realFeeQuantity = App\Http\Controllers\PaymentRequestOperationalController::feeQuantity($paymentRequest->id, $item->id) @endphp @endif @endforeach @endif @endsection @section('correction-fee-tr') @endsection @section('amountBRL-Part2') @endsection @section('correction-fee-tr-hauling') @php $texto = '' @endphp @if($paymentRequest->payment_type == 'Hauling') @php $texto = 'x'.$paymentRequest->correctionQty; @endphp @endif @if($paymentRequest->payment_type == 'Stuffing') @endif @endsection @section('amountBRL-Part2') @endsection
Payment Description - BRL:

Loss

Charge
Buyer

{!! $item->descricao ? $item->descricao : '-' !!}

Unit Price:

{!! ( $item->currencies_id == 148 ? 'USD' : 'BRL')!!} {!! $item->price ? $item->price : '-' !!}

Total Amount:

{!! ( $item->currencies_id == 148 ? number_format((($item->price) * ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty))),2,'.','') : number_format($item->price * ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty)),2,'.','') ) !!} x {!! ($realFeeQuantity != null ? $realFeeQuantity : ($item->PaymentType == 'BL' ? $loading->blQty: $loading->containerQty)) !!}

{{ $item->itemLoss == 'on' ? 'Yes' : 'No' }}

{{ $item->itemLoss == 'on' ? 'No' : 'Yes'}}

BL CORRECTION FEE

Valor Unit.:

BRL {!! $paymentRequest->correctionPrice ? number_format($paymentRequest->correctionPrice,2,'.','') : '-' !!}

Valor Total:

{!! number_format($paymentRequest->correctionPrice,2,'.','') !!} x {!! $paymentRequest->correctionQty !!}

{{ $paymentRequest->loss ?? 'No' }}

{{ $paymentRequest->loss == 'Yes' ? 'No' : 'Yes'}}


Total BRL: R$ {!! number_format(($paymentRequest->amountBRL + ($paymentRequest->correctionPrice * $paymentRequest->correctionQty)),2,'.','') !!}

Total BRL: R$ {!! $paymentRequest->amountBRL !!}

EXTRA PAYMENT

Valor Unit.:

{!! $paymentRequest->correctionPrice ? number_format($paymentRequest->correctionPrice,2,'.','') : '-' !!}

Valor Total:

{!! number_format($paymentRequest->correctionPrice,2,'.','') !!} {!! $texto !!}

x {!! $paymentRequest->correctionQty !!}

{{ $paymentRequest->loss ?? 'No' }}

{{ $paymentRequest->loss == 'Yes' ? 'No' : 'Yes' }}


Total BRL: R$ {!! number_format(($paymentRequest->amountBRL + ($paymentRequest->correctionPrice * $paymentRequest->correctionQty)),2,'.','') !!}

Total BRL: R$ {!! $paymentRequest->amountBRL !!}