@extends('layouts.app2') @section('content')

Finalization

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Finalization Reports - Filters
{!! Form::open(['method' => 'POST', 'route' => 'mis.document.finalization.download_final_report', 'class' => 'margin-unset', 'id' => 'docFinalReportDownloadForm']) !!}
{!! Form::close() !!}
Search Filters
{!! Form::open(['method' => 'GET', 'url' => '/transport/pdo_trip_close','id'=>'form1','class' => 'margin-unset', 'role' => 'search']) !!}
{!! Form::select('booking_number',['' => 'Select Booking No'] + $page_data['booking_no'] ,null, ['id'=>'booking_number','class' => 'form-control']) !!}
{!! Form::select('customer',['' => 'Select Customer'] + $page_data['customer'] ,null, ['id'=>'customer','class' => 'form-control']) !!}
{!! Form::select('customer_ref',['' => 'Select Customer Ref'] + $page_data['customer_ref'] ,null, ['id'=>'customer_ref','class' => 'form-control']) !!}
{!! Form::select('consignee',['' => 'Select Consignee'] + $page_data['consignee'] ,null, ['id'=>'consignee','class' => 'form-control']) !!}
{!! Form::select('trip',['' => 'Select Trip'] + $page_data['trip'] ,null, ['id'=>'trip','class' => 'form-control']) !!}
{!! Form::select('truck',['' => 'Select Truck'] + $page_data['truck'] ,null, ['id'=>'truck','class' => 'form-control']) !!}
{!! Form::select('driver',['' => 'Select Driver'] + $page_data['driver'] ,null, ['id'=>'driver','class' => 'form-control']) !!}
{!! Form::select('origin',['' => 'Select Origin'] + $page_data['origin'] ,null, ['id'=>'origin','class' => 'form-control']) !!}
{!! Form::select('destination',['' => 'Select Destination'] + $page_data['destination'] ,null, ['id'=>'destination','class' => 'form-control']) !!}
{!! Form::select('shipping_line',['' => 'Select Shipping Line'] + $page_data['shipping_line'] ,null, ['id'=>'shipping_line','class' => 'form-control']) !!}
{!! Form::select('lading_bill',['' => 'Select BL'] + $page_data['lading_bill'] ,null, ['id'=>'ladding_bill','class' => 'form-control']) !!}
{!! Form::select('cargo_type',['' => 'Select Cargo Type'] + $page_data['cargo_type'] ,null, ['id'=>'cargo_type','class' => 'form-control']) !!}
{!! Form::select('product',['' => 'Select Product'] + $page_data['product'] ,null, ['id'=>'product','class' => 'form-control']) !!}
{!! Form::select('status',['' => 'Select Status'] + $page_data['status'] ,null, ['id'=>'status','class' => 'form-control']) !!}
{!! Form::close() !!}
Finalization
{!! Form::open(['method' => 'GET', 'url' => '/transport/pdo_trip_close','id'=>'form3','class' => 'display-flex']) !!}      {!! Form::close()!!}
Show All Closed Show All
@foreach($tracking as $t) @endforeach
Id Date Customer Booking No Cust Ref Container Trip Number Truck Trailer Driver Origin Destination Border Km Line BL Type Product Size Tons Packaging Status Detail
{{ $t->id }} {{ Helper::convert_to_ddmmyy(date("Y-m-d", strtotime($t->created_at))) }} {{ $t->cargo->order->customer['name'] }} {{ $t->cargo->order['booking_no'] }} {{ $t->cargo->order['customer_ref'] }} {{ $t->cargo['container'] }} {{ $t->trip_number }} {{ $t->truck }} {{ $t->trailer }} {{ $t->driver }} {{ $t->cargo->order->origin['origin'] }} {{ $t->cargo->order->destination['destination'] }} {{ $t->cargo->order->destination['border'] }} @if($t->cargo->order->destination['Km']) {{ number_format($t->cargo->order->destination['Km'], 2, '.', ',') }} @else {{ $t->cargo->order->destination['Km'] }} @endif {{ $t->cargo->order->shipping_line['name'] }} {{ $t->cargo->order['lading_bill'] }} @if($t->cargo['cargo_type'] == 'containarized') CNTR @endif @if($t->cargo['cargo_type'] == 'break_bulk') BBK @endif @if($t->cargo['cargo_type'] == 'oog') OOG @endif @if($t->cargo['cargo_type'] == 'lcl') LCL @endif {{ $t->cargo['product'] }} {{ $t->cargo['size'] }} {{ $t->cargo['weight'] }} {{ $t->cargo['packaging'] }} Kg @if($t->status == 'Delivered')

Delivered

@endif @if($t->status == 'Invoiced')

Invoiced

@endif @if($t->status == 'Closed')

Closed

@endif
{!! $tracking->appends(request()->input())->links(); !!}

{!! Form::open(['method' => 'POST', 'url' => '/transport/finalization/save_billing']) !!}

{!! Form::close() !!}

Log

Customer Customer Ref Inv Nr Inv Date Currency Amount Rate
{!! Form::open(['method' => 'POST', 'url' => '/transport/finalization/save_cargo']) !!}

{!! Form::close() !!}

Log

Trip Doc Doc Nr Diff Packaging Price Amount Container Weight Remark
{!! Form::open(['method' => 'POST', 'url' => '/transport/finalization/save_finalization_fuel']) !!}
# Trip Driver Corridor Km Fuel Allowance Fuel Used Km/ltr Fuel Diff Price/Ltr Deduction Remark
{!! Form::close() !!}
{!! Form::open(['method' => 'POST', 'url' => '/transport/finalization/save_closure']) !!}

{!! Form::close() !!}
@endsection @section('scripts') @endsection