@extends('layout.padrao') @section('title', 'Debit Note - Issuance') @section('content') @if($msg)
{{ $msg }}
@endif
{{method_field('POST')}} {{ csrf_field() }} @foreach($loadingRequests as $loadingRequest) id}} />
{{-- Information --}}
profile Pic

BOOKING INFORMATION

SAOE: {{$loadingRequest->SAOE}}

BOOKING: {{$loadingRequest->booking}}

CLIENT: {{$loadingRequest->clients->fantasyName}}

PRODUCT: {{$loadingRequest->platforms->descricao}}

CARRIER: {{$loadingRequest->carriers->descricao}} - VESSEL: {{$loadingRequest->vessel->descricao}} - VOYAGE: {{$loadingRequest->voyage}}

BL DATE: {{ date( 'd-m-Y' , strtotime($loadingRequest->BlDate))}}

BL No: {{ $loadingRequest->BlNumber}}

QUANTITY: {{ $loadingRequest->containerQty}}

TYPE OF EQUIPMENT: {{ $loadingRequest->container_types->descricao }}

CARGO TYPE: {{ (isset($loadingRequest->cargo_types->descricao) ? $loadingRequest->cargo_types->descricao : '-')}}

DESTIONATION PORT: @if(substr($loadingRequest->SAOE,0,4) == 'SAOE') {{($loadingRequest->code_of_ports1 ? $loadingRequest->code_of_ports1->place . ',' . $loadingRequest->code_of_ports1->country : '')}} @else {{($loadingRequest->loading_ports->descricao ? $loadingRequest->loading_ports->descricao : '')}} @endif

LOADING PORT: @if(substr($loadingRequest->SAOE,0,4) == 'SAOE') {{($loadingRequest->loading_ports->descricao ? $loadingRequest->loading_ports->descricao : '')}} @else {{($loadingRequest->code_of_ports1 ? $loadingRequest->code_of_ports1->place . ',' . $loadingRequest->code_of_ports1->country : '')}} @endif

HAULING: {{(isset($loadingRequest->hauling->name)? $loadingRequest->hauling->name : '-')}} -

@if($loop->first) @php $profit_multiplus = 'Yes'; @endphp @endif {{-- boxes --}}
@foreach($loadingRequest->servicesProfile as $services) @if($loop->first)

IMPORTANT COMMENTS

{{(isset($loadingRequest->clientProfile->service_product_profiles->comments) ? $loadingRequest->clientProfile->service_product_profiles->comments : '---')}}

PAYMENT TERMS

{{($loadingRequest->clientProfile->payment_terms->days ?? '')}} (DAYS) FROM {{($loadingRequest->clientProfile->payment_terms->description ?? '')}}

INVOICE CUT OFF DATE

{{isset($loadingRequest->clientProfile->invoicing_cutoff)?$loadingRequest->clientProfile->invoicing_cutoff : '0'}}

clientProfile->exchange_rate == null?0:$loadingRequest->clientProfile->exchange_rate}} step="0.00001">
@if($profit_multiplus == 'Yes')
Earning:

Expenses:

Profit:

R$ 0,00

@php $profit_multiplus = 'No'; @endphp @else
@endif
{!! Form::select('shipper_id', [''=>'Client'] + $select['clientsCnpj'], old('shipper_id', $loadingRequest->shippers_id), ['class' => 'control-label shipper_id']) !!}
@endif {{-- HAULING 3 Feito loss! --}} @forelse($services->paymentRequestHaulings as $paymentRequest) @if($services->service_types_id == 3 ) id}} name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][paymentRequest]">
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

{{$paymentRequest->status}}

@foreach($loadingRequest->haulings as $index => $hauling) @endforeach @if($paymentRequest->CorretionFee == 'Yes') @endif
DESCRITION QTY PRICE LOSS TOTAL
id, 'checkbox', $services->service_types_id, ($hauling->id))}} class=' get-subservice form-group double-scale subitem[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]' name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][checkbox][]" value={{$hauling->id}}> {{$hauling->descricao}} R$ @php $loss = App\Http\Controllers\InvoiceIssuanceController::get_fee($paymentRequest->id, 'loss', $services->service_types_id, $hauling->id); @endphp {{$loss}} currencies_id}} />
EXTRA HAULING PAYMENT R$
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endif @empty @if($services->service_types_id == 3)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

@foreach($loadingRequest->haulings as $index => $hauling) @endforeach
DESCRITION QTY PRICE TOTAL
id}}> {{$hauling->descricao}} R$ currencies_id}} />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endif @endforelse {{-- STUFFING TERMINAL --}} @if($services->service_types_id == 8) @forelse($services->paymentRequestsStuffins as $paymentRequest) id}} name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][paymentRequest]">
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

{{$paymentRequest->status}}

@foreach($loadingRequest->stuffings as $index => $stuffings) @endforeach @if($paymentRequest->CorretionFee == 'Yes') @endif
DESCRITION QTY PRICE LOSS TOTAL
id, 'checkbox', $services->service_types_id, $stuffings->id)}} class=' get-subservice form-group double-scale subitem[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]' name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][checkbox][]" value={{$stuffings->id}}> {{$stuffings->descricao}} R$ @php $loss = App\Http\Controllers\InvoiceIssuanceController::get_fee($paymentRequest->id, 'loss', $services->service_types_id, $stuffings->id); @endphp {{$loss}} currencies_id}} />
EXTRA STUFFING PAYMENT R$
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@empty
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

@foreach($loadingRequest->stuffings as $index => $stuffing) @endforeach
DESCRITION QTY PRICE TOTAL
id}}> {{$stuffing->descricao}} R$ currencies_id}} />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endforelse @endif {{-- LOCAL CHARGES Feito Loss!!! --}} @forelse($services->paymentRequestsOrigin as $paymentRequest) @if($services->service_types_id == 7) id}} name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][paymentRequest]">
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

{{$paymentRequest->status}}

@foreach($loadingRequest->local_charges_codes as $index => $local_charges_code) @endforeach @if($paymentRequest->CorretionFee == 'Yes') @endif
DESCRITION PRICE LOSS TOTAL
id, 'checkbox', 7, $local_charges_code->id)}} class=' get-subservice form-group double-scale subitem[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]' name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][checkbox][]" value={{$local_charges_code->id}}> {{$local_charges_code->descricao}} {{$local_charges_code->currencies_id == 148 ? '$': ($local_charges_code->currencies_id == 21 ? 'R$' : $local_charges_code->currencies->descricao) }} currencies_id}} /> dollarRate}}> @php if(((App\Http\Controllers\InvoiceIssuanceController::get_fee($paymentRequest->id, 'qty', 7, $local_charges_code->id)))) $get_qty = (App\Http\Controllers\InvoiceIssuanceController::get_fee($paymentRequest->id, 'qty', 7, $local_charges_code->id) ); else $get_qty =($local_charges_code->PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount); @endphp id}} name="dollar[]" /> PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount)}} --}} value="{{$get_qty}}" step="0.01"> @php $loss = (App\Http\Controllers\InvoiceIssuanceController::get_fee($paymentRequest->id, 'loss', 7, $local_charges_code->id) ); @endphp {{$loss}} x {{$get_qty}}
CORRECTION BL FEE R$ correctionQty}} step="0.010"> loss == 'Yes' ? "class=lossRed" : "" }}> {{$paymentRequest->loss}} x {{($paymentRequest->correctionQty)}}
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
@if($paymentRequest->dollarRate != null)

Dollar Rate: {{$paymentRequest->dollarRate}}

@endif @if($paymentRequest->addComments != null)

Payment Request Comments: {{$paymentRequest->addComments}}

@endif @if($paymentRequest->reason != null)

Payment Request Correction BL Fee Reason: {{$paymentRequest->reason}}

@endif @if($paymentRequest->extraPaymentReason != null)

Extra Payment Request Reason: {{$paymentRequest->extraPaymentReason}}

@endif
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endif @empty @if($services->service_types_id == 7)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

@foreach($loadingRequest->local_charges_codes as $index => $local_charges_code) @endforeach
DESCRITION PRICE LOSS TOTAL
id}}> {{$local_charges_code->descricao}} {{$local_charges_code->currencies_id == 148 ? '$': ($local_charges_code->currencies_id == 21 ? 'R$' : $local_charges_code->currencies->descricao) }} currencies_id}} /> id}} name="dollar[]" /> PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount)}} step="0.010"> x {{($local_charges_code->PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount)}}
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endif @endforelse {{-- MARITIME FREIGHT 4--}} @if($services->service_types_id == 4)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

@foreach($loadingRequest->maritime_charges as $index => $maritime_charge) @endforeach
DESCRITION PRICE LOSS TOTAL
id}}> {{$maritime_charge->descricao}} {{$maritime_charge->currencies_id == 148 ? '$':$maritime_charge->currencies_id}} currencies_id}} /> id}} name="dollar[]" /> PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount)}} step="0.010"> x {{($maritime_charge->PaymentType == 'FCL' ? $loadingRequest->containerQty : $loadingRequest->BLCount)}}
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
{{-- INSURANCE 5--}} @elseif($services->service_types_id == 5)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

DESCRITION PRICE TOTAL
INSURANCE $0.0000 $ id}} name="dollar[]" />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
{{-- BOX FEE --}} @elseif($services->service_types_id == 6)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

DESCRITION PRICE TOTAL
BOX FEE $0.0000 $ id}} name="dollar[]" />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
{{-- TANK LEASING --}} @elseif($services->service_types_id == 9)
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}]">

{{App\Http\Controllers\ClientProfileChecksController::get_service_type_description($services->service_types_id)}}

@foreach($loadingRequest->LeasingRates as $index => $LeasingRate) @endforeach
DESCRITION QTY PRICE TOTAL
id}}> {{$LeasingRate->descricao}} $ currencies_id}} />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endif {{-- Other Services - Feito Loss!!! --}} @if($services->service_types_id == 'Other_Services' ) @foreach($services->paymentRequestOtherServices as $paymentRequest) id}} name="get_values[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}][paymentRequest]">
service_types_id}} name="service[{{$loadingRequest->id}}][{{$services->service_types_id}}][{{$paymentRequest->id}}]">

Other Services

Requested

@foreach($services->paymentRequestOtherServicesItem as $index => $otherServices) @if($otherServices->payment_req_local_charges_id == $paymentRequest->id) @php $varLoadingRequestId = $loadingRequest->id; $varServicesServiceTypesId = $services->service_types_id; $varOtherServicesPaymentReqLocalChargesId = $otherServices->payment_req_local_charges_id; @endphp @endif @endforeach {{-- @if($otherServices->payment_req_local_charges_id == $paymentRequest->id) --}} {{-- @endif --}}
DESCRITION QTY PRICE Loss TOTAL
general_service_types_id}}> {{$otherServices->descricao}} {{ $otherServices->currencies_id <> '21' ? 'US$' : 'R$' }} {{$otherServices->loss ?? '' }} currencies_id}} />
SUB TOTAL U$
GRAND TOTAL RS
NOTICE:
{!! App\Http\Controllers\InvoiceIssuanceController::get_fee($loadingRequest->platforms_id, 'profileComments', $services->service_types_id, $loadingRequest->clients_id) !!}
@endforeach @endif @endforeach
@endforeach
{{-- --}} {{-- --}} CANCEL
@include('finance.invoiceIssuance.script') @include('bibliotecas.multiplyButtons') @include('bibliotecas.maskMoney') @endSection