@extends('layout.padrao')
@include('loading.paymentRequest.information_module')
@section('title', $title)
@section('content')
@if($errors->any())
@yield('logisticsInformation-block')
{{ Form::open(array('method' => 'post', 'id' => 'StuffingForm', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updateStuffingPaymentRequest', $paymentRequest->id))) }}
{{method_field('PUT')}}
{{ csrf_field() }}
{{ 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('payment_type', 'Stuffing') }}
{{ Form::hidden('loadingType' , 'STUFPAYREQ') }}
@if(isset($extraPayment) && $extraPayment == 'Yes')
{{ Form::hidden('paymentExtra', 'Yes') }}
@endif
@yield('Payment-date-edit')
@yield('tooltipDetailsHauling')
@if(isset($registers[0]))
@foreach($registers as $item)
@if($loop->first)
{{($item->cities->descricao ?? '-')}}
Estufagem: {{($item->stuffing_terminals->name ?? '-')}}
Entrega: {{($item->loading_terminals->descricao ?? '-')}}
@php $new_route='Y'; @endphp
@else
@if($item->stuffing_terminal_id <> $registers[$loop->index -1]->stuffing_terminal_id ||
$item->cities_id <> $registers[$loop->index -1]->cities_id ||
$item->loading_terminals_id <> $registers[$loop->index - 1]->loading_terminals_id)
{{($item->cities->descricao ?? '-')}}
Estufagem: {{($item->stuffing_terminals->name ?? '-')}}
Entrega: {{($item->loading_terminals->descricao ?? '-')}}
@php $new_route='Y'; @endphp
@endif
@endif
@if($item->stuffingCost <> null && $item->stuffingCost <> 0)
@endif
@if($item->leftMarginDelivery <> null && $item->leftMarginDelivery <> 0)
@endif
{{-- estadia rates --}}
@if($item->flexiTankHandling <> null && $item->flexiTankHandling <> 0)
@endif
@if($item->preStacking <> null && $item->preStacking <> 0)
@endif
@if($item->storageCost <> null && $item->storageCost <> 0)
@endif
@if($loop->last)
@if(((count($registers)) % 2) == 0 )
@else
@endif
@yield('bank-details-edit')
@endif
@endforeach
@else
Stuffing Rate not registered.
@endif
@yield('correctionFee-module-edit-hauling')
{{-- 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')
@include('include.btn_registrar')
@if($attachments)
@endif
@include('include.modal_deletar', ["rota" => "Anexo"])
@include('bibliotecas.floattheadOverflow')
@include('loading.haulingPaymentRequest.script')
@endSection