@yield('tooltipDetailsLocalCharges')
@forelse($register as $item)
@php
$get_fee_checked = null;
foreach($item->payment_fee as $checkfee){
if($checkfee->maritime_quote_codes_id == $item->maritime_quote_codes->id){
$get_fee_checked = $checkfee->maritime_quote_codes_id;
}
}
@endphp
{!! Form::checkbox('checkboxPrice[]', $item->id, $get_fee_checked, ['onclick'=>'return false', 'class'=>'checkbox-size16', 'disabled']) !!}
{!! Form::label('maritime_quote_codes_id', $item->maritime_quote_codes->descricao, [ 'class' => 'pr-16 control-label', 'style' => 'font-size:13px;margin-left:4px']) !!}
{!! Form::label('price', ' Price (' . $item->maritime_quote_codes->currencies->descricao . ')', [ 'class' => 'w-100 control-label', 'step'=>'0.01' ]) !!}
{{ Form::hidden('maritime_quote_codes_id[]', $item->maritime_quote_codes->id) }}
{{ Form::hidden('currencies[]', $item->maritime_quote_codes->currencies_id) }}
{!! Form::number('price[]', $item->price, ['class'=>'form-control price-payment-format', 'id'=>'price', 'step'=>'any', 'readonly'=>'readonly']) !!}
{!! Form::label('totalPriceSum', ' Total ' , [ 'class' => 'w-100 control-label' ]) !!}
{!! Form::number('totalPriceSum[]', ($item->price * ($item->maritime_quote_codes->PaymentType == 'BL' ? $loadingRequest->blQty : $loadingRequest->containerQty)),
['class'=>'form-control price-payment-format', 'id'=>'totalPriceSum', 'step'=>'0.01','readonly'=>'readonly']) !!}
@php
$realFeeQuantity = App\Http\Controllers\PaymentRequestOperationalController::feeQuantity($paymentRequest->id, $item->id)
@endphp
{!! Form::label('totalPriceSum', $item->maritime_quote_codes->PaymentType . ' x '. ($realFeeQuantity != null ? $realFeeQuantity : ($item->maritime_quote_codes->PaymentType == 'BL' ? $loadingRequest->blQty: $loadingRequest->containerQty)), [ 'class' => 'w-100 control-label', ]) !!}
@empty
@endforelse
{!! Form::label('totalPrice', ' Total Amount (USD)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('amount', $paymentRequest->amount, ['class'=>'form-control price-payment-format-total border-top-first', 'id'=>'totalPrice','step'=>'any','readonly'=>'readonly']) !!}
{!! Form::label('totalPrice', ' Total Amount (BRL)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('amountBRL', $paymentRequest->amountBRL, ['class'=>'form-control price-payment-format-total border-top-first', 'id'=>'totalPrice','step'=>'any','readonly'=>'readonly']) !!}
{!! Form::label('totalPrice', 'Total Amount (USD+BRL)', [ 'class' => 'w-100 control-label' ]) !!}
{!! Form::number('amountUSD', ($paymentRequest->amount + $paymentRequest->amountBRL), ['class'=>'form-control price-payment-format-total', 'id'=>'totalPrice','step'=>'any','readonly'=>'readonly', 'style' => 'width: 100%']) !!}
@yield('bank-details-edit')