@extends('layout.padrao') @section('title', 'Payment Request') @include('loading.paymentRequest.information_module') @section('content') @if($errors->any())

Algo deu errado. Verificar Campos Obrigatórios

@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('method' => 'post', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updatePaymentRequest', $paymentRequest->id), 'id'=>'payment_create')) }} {{ csrf_field() }}
@yield('logisticsInformation-block')
@if($extraPayment == 'Yes')
{!! Form::label('extraPaymentReason', 'Reason', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('extraPaymentReason', old('extraPaymentReason', $paymentRequest->extraPaymentReason), ['class' => 'form-control', 'rows' => 3, 'style' =>'margin-bottom:10px', 'placeholder' => 'Reason:']) !!}
{{ Form::hidden('paymentExtra', 'Yes') }} @endif
@yield('Payment-date-edit') {{ Form::hidden('SAOE' , $loadingRequest->SAOE) }} {{ Form::hidden('loading_requests_id', $loadingRequest->id) }} {{ Form::hidden('containerQty', $loadingRequest->containerQty) }} {{ Form::hidden('blQty', $loadingRequest->blQty) }} {{ Form::hidden('status', 'Requested') }} {{ Form::hidden('loadingType' , 'PAYREQ') }}
{!! Form::label('loss', 'Loss', [ 'class' => 'pr-16 control-label', 'style' => 'font-size:14px']) !!}
{!! Form::label('chargeBuyer', 'Charge Buyer', [ 'class' => 'pr-16 control-label', 'style' => 'font-size:14px']) !!}
@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', ]) !!}
@php $realFeeItemLoss = App\Http\Controllers\PaymentRequestOperationalController::feeItemLoss($paymentRequest->id, $item->id); $realFeeItemChargeBuyer = App\Http\Controllers\PaymentRequestOperationalController::feeItemChargeBuyer($paymentRequest->id, $item->id); @endphp
@if($realFeeItemLoss != null) @else @endif
@if($realFeeItemChargeBuyer != null) @else @endif
@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')
@yield('correctionFee-module-edit')
{{-- Inserir Código de Barras - Componente --}}
{{-- --}} @foreach($attachments as $check_attach) @if($check_attach->anexo_types_id != 18) @continue; @endif @livewire('bar-code.bar-code-reader-livewire', ['paymentReqId' => $paymentRequest->id]) @break @endforeach
@if(isset($invoiceTester) && count($invoiceTester) > 1)

Esta fatura está em duplicidade com: @foreach($invoiceTester as $invoice) @if($invoice->id == $paymentRequest->id) @continue; @endif {{ $invoice->id }} @endforeach

@endif
@yield('footer-comments-attach-edit')
@if($attachments)
@foreach($loadingRequest->anexo_types as $item) @endforeach
Actions Attachment Type Attachment Name Attachment Insert Date
@can('internalRoutine', App\Usuario::class) @can('delete', App\Usuario::class) pivot->id}} data-toggle="modal" data-target="#delete" data-toggle="tooltip" data-placement="top" title="Delete"> @endcan @endcan {{$item->descricao}} pivot->path.'/'.$item->pivot->nmAnexo) }}" download="{{$item->pivot->nmAnexo}}">{{$item->pivot->nmAnexo}} {{$item->pivot->created_at}}
@include('bibliotecas.floattheadOverflow') @endif @include('loading.paymentRequest.script') @include('include.modal_deletar', ["rota" => "Payment Request Attachment"]) @endSection