@extends('layout.padrao') @section('title', 'Invoicing Form') @include('include.attach_edit_list') @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'=>'storeInvoice', 'id'=>'form-modal-submit', 'class'=>'remove-record-model form_horizontal')) }} {{ Form::hidden('loadingType', $loadingType) }} {{ csrf_field() }}
{{ Form::hidden('SAOE', $register->SAOE) }} {{ Form::hidden('loading_requests_id', $register->id) }}
profile Pic @if($loadingType == 'FNCB')

Brazilian Invoice

@else

CSA Swiss Invoicing

@endif

CLIENT: {{$register->clients->fantasyName ? $register->clients->fantasyName : '-'}}

GROSS WEIGHT: {{$register->grossweight ? number_format($register->grossweight, 3) : ' - '}}

INCOTERM: {{$register->incoterm ? $register->incoterms->description : '-'}}

TANK OWNER - QUANTITY - DATE: {{$item['tankOwner'] == null ? '-' : $item['tankOwner'] }}

EMPTY RELEASE PLACE - QUANTITY - DATE: {{$item['empties'] == null ? '-' : $item['empties']}}

LOADING PLANT - QUANTITY - DATE: {{$item['loadingPlant'] == null ? '-' : $item['loadingPlant']}}

STUFFING PLACE - QUANTITY - DATE: {{$item['stuffings'] == null ? '-' : $item['stuffings']}}

BOOKING No: {{$register->booking }}

{!!($register->isotank_type ? 'Isotank Type:' . ' ' . $register->isotankType->description : '')!!}

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

CARRIER: {{$register->carriers->descricao}}

PORT OF DISCHARGE: {{($register->code_of_ports1 ? $register->code_of_ports1->place . ',' . $register->code_of_ports1->country : '')}}

BL No: {{$item['BlNumber'] == null ? '' : $item['BlNumber']}}

BL DATE: {{$item['BlDate']}}

LOADING PORT: {{$register->loading_ports->descricao }}

QUANTITY & TYPE OF EQUIPMENT: {{ $register->containerQty}} x {{ $register->container_types->descricao }}

SAOE: {{ $register->SAOE}}

{!!($register->isotank_preparation ? 'Isotank Preparation:' . ' ' . $register->isotankPreparation->description : '')!!}

@php $dataBL = date( 'Y-m-d' , strtotime($item['BlDate'])); @endphp @if ($loadingType == 'FNCB')

Sending Status:

{!! Form::label('brazilianInvoice', 'Done', [ 'class' => 'w-80 control-label']) !!} {!! Form::radio('brazilianInvoice', 'Done',old('brazilianInvoice',empty($finance_register[0]) ? false : ($finance_register[0]->brazilianInvoice=='Done'?true:false))) !!}
{!! Form::label('brazilianInvoice', 'N/A', [ 'class' => 'w-80 control-label']) !!} {!! Form::radio('brazilianInvoice', 'N/A',old('brazilianInvoice',empty($finance_register[0]) ?false: ($finance_register[0]->brazilianInvoice=='N/A'?true:false))) !!}
{!! Form::label('brazilianInvoiceDate', ' ', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('brazilianInvoiceDate', empty($finance_register[0]) ?null:$finance_register[0]->brazilianInvoiceDate, ['class' => 'form-control', 'max' => date('Y-m-d'), 'min' => $dataBL, 'style' => 'margin-top:-14px', empty($finance_register[0]->brazilianInvoiceDate)? "" : "readonly"]) !!}
{!! Form::label('comments', 'Additional Comments', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('comments', old('comments',empty($finance_register[0]) ?null:$finance_register[0]->comments), ['class' => 'form-control textsAreaMedium ', 'rows' => 3 ,'id' => 'comments']) !!}
@else

Sending Status:

{!! Form::label('suisseInvoice', 'Done', [ 'class' => 'w-80 control-label']) !!} {!! Form::radio('suisseInvoice', 'Done', old('suisseInvoice',empty($finance_register[0]) ?false:($finance_register[0]->suisseInvoice=='Done'?true:false))) !!}
{!! Form::label('suisseInvoice', 'N/A', [ 'class' => 'w-80 control-label']) !!} {!! Form::radio('suisseInvoice', 'N/A', old('suisseInvoice',empty($finance_register[0]) ?false:($finance_register[0]->suisseInvoice=='N/A'?true:false))) !!}
{!! Form::label('suisseInvoiceDate', ' ', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('suisseInvoiceDate', empty($finance_register[0]) ? null : $finance_register[0]->suisseInvoiceDate, ['class' => 'form-control', 'max' => date('Y-m-d'), 'min' => $dataBL, 'style' => 'margin-top:-14px', empty($finance_register[0]->suisseInvoiceDate)? "" : "readonly"]) !!}
{!! Form::label('commentsSuisse', 'Additional Comments', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('commentsSuisse', old('commentsSuisse',empty($finance_register[0]) ?null:$finance_register[0]->commentsSuisse), ['class' => 'form-control textsAreaMedium ', 'rows' => 3 , 'id' => 'comments']) !!}
@endif

Details

@if(count($register->payment_req_local_charges) > 0 && isset($register->payment_req_local_charges)) {!! (App\Http\Controllers\ClientProfileChecksController::check_request_DN($register->clients_id, $register->platforms_id, $register->payment_req_local_charges, $loadingType)) !!} @else @endif
Pagamento Data do Pagamento Comprovante Debit Note
- - - -

Attachment

{!! Form::select('anexo_types_id[]',[''=>'Select Required']+$select['anexo_types_id'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
@yield('attach_edit_list')
@can('internalRoutineFinanceManagerOnly', App\Usuario::class) @endcan
@include('finance.script') @include('bibliotecas.multiplyButtons') @endSection