@include('layouts.header') @if (Session::has('msg')) @endif @include('layouts.navigation1')

VESSEL DEPOSIT FORM

@php date_default_timezone_set("Pacific/Fiji"); $data = null; $inward_total = 0; $outward_total = 0; $in_fcl_20 = ['qty' => '', 'amount' => 0]; $in_fcl_40 = ['qty' => '', 'amount' => 0]; $in_emp_20 = ['qty' => '', 'amount' => 0]; $in_emp_40 = ['qty' => '', 'amount' => 0]; $in_fcl_trans_20 = ['qty' => '', 'amount' => 0]; $in_fcl_trans_40 = ['qty' => '', 'amount' => 0]; $in_fcl_restow_20 = ['qty' => '', 'amount' => 0]; $in_fcl_restow_40 = ['qty' => '', 'amount' => 0]; $in_emp_restow_20 = ['qty' => '', 'amount' => 0]; $in_emp_restow_40 = ['qty' => '', 'amount' => 0]; $in_fcl_sob_20 = ['qty' => '', 'amount' => 0]; $in_fcl_sob_40 = ['qty' => '', 'amount' => 0]; $in_emp_sob_20 = ['qty' => '', 'amount' => 0]; $in_emp_sob_40 = ['qty' => '', 'amount' => 0]; $in_oog_20 = ['qty' => '', 'amount' => 0]; $in_oog_40 = ['qty' => '', 'amount' => 0]; $in_breakbulk = ['qty' => '', 'amount' => 0]; $in_master_packs = ['qty' => '', 'amount' => 0]; $in_steel = ['qty' => '', 'amount' => 0]; $in_vehicles = ['qty' => '', 'amount' => 0]; $in_dry_bulk = ['qty' => '', 'amount' => 0]; $in_others = ['qty' => '', 'amount' => 0]; $out_fcl_20 = ['qty' => '', 'amount' => 0]; $out_fcl_40 = ['qty' => '', 'amount' => 0]; $out_emp_20 = ['qty' => '', 'amount' => 0]; $out_emp_40 = ['qty' => '', 'amount' => 0]; $out_fcl_trans_20 = ['qty' => '', 'amount' => 0]; $out_fcl_trans_40 = ['qty' => '', 'amount' => 0]; $out_fcl_restow_20 = ['qty' => '', 'amount' => 0]; $out_fcl_restow_40 = ['qty' => '', 'amount' => 0]; $out_emp_restow_20 = ['qty' => '', 'amount' => 0]; $out_emp_restow_40 = ['qty' => '', 'amount' => 0]; $out_fcl_sob_20 = ['qty' => '', 'amount' => 0]; $out_fcl_sob_40 = ['qty' => '', 'amount' => 0]; $out_emp_sob_20 = ['qty' => '', 'amount' => 0]; $out_emp_sob_40 = ['qty' => '', 'amount' => 0]; $out_oog_20 = ['qty' => '', 'amount' => 0]; $out_oog_40 = ['qty' => '', 'amount' => 0]; $out_breakbulk = ['qty' => '', 'amount' => 0]; $out_master_packs = ['qty' => '', 'amount' => 0]; $out_steel = ['qty' => '', 'amount' => 0]; $out_vehicles = ['qty' => '', 'amount' => 0]; $out_dry_bulk = ['qty' => '', 'amount' => 0]; $out_others = ['qty' => '', 'amount' => 0]; @endphp @if(Session::has('draft_data')) @php $data = Session::get('draft_data'); @endphp @endif @if($data) @php function create_object($row_data, $rate, $table_type){ if (is_null($row_data)){ return ['qty' => '', 'amount' => 0]; }else{ return ['qty' => $row_data->qty, 'amount' => $row_data->qty * $rate]; } } $in_fcl_20 = create_object((empty($data['vessel_deposit_data']['in_fcl_20']) ? null : $data['vessel_deposit_data']['in_fcl_20']), 150.00, 'in'); $in_fcl_40 = create_object((empty($data['vessel_deposit_data']['in_fcl_40']) ? null : $data['vessel_deposit_data']['in_fcl_40']), 225.00, 'in'); $in_emp_20 = create_object((empty($data['vessel_deposit_data']['in_emp_20']) ? null : $data['vessel_deposit_data']['in_emp_20']), 80.00, 'in'); $in_emp_40 = create_object((empty($data['vessel_deposit_data']['in_emp_40']) ? null : $data['vessel_deposit_data']['in_emp_40']), 120.00, 'in'); $in_fcl_trans_20 = create_object((empty($data['vessel_deposit_data']['in_fcl_trans_20']) ? null : $data['vessel_deposit_data']['in_fcl_trans_20']), 80.00, 'in'); $in_fcl_trans_40 = create_object((empty($data['vessel_deposit_data']['in_fcl_trans_40']) ? null : $data['vessel_deposit_data']['in_fcl_trans_40']), 144.00, 'in'); $in_fcl_restow_20 = create_object((empty($data['vessel_deposit_data']['in_fcl_restow_20']) ? null : $data['vessel_deposit_data']['in_fcl_restow_20']), 300.00, 'in'); $in_fcl_restow_40 = create_object((empty($data['vessel_deposit_data']['in_fcl_restow_40']) ? null : $data['vessel_deposit_data']['in_fcl_restow_40']), 450.00, 'in'); $in_emp_restow_20 = create_object((empty($data['vessel_deposit_data']['in_emp_restow_20']) ? null : $data['vessel_deposit_data']['in_emp_restow_20']), 160.00, 'in'); $in_emp_restow_40 = create_object((empty($data['vessel_deposit_data']['in_emp_restow_40']) ? null : $data['vessel_deposit_data']['in_emp_restow_40']), 240.00, 'in'); $in_fcl_sob_20 = create_object((empty($data['vessel_deposit_data']['in_fcl_sob_20']) ? null : $data['vessel_deposit_data']['in_fcl_sob_20']), 150.00, 'in'); $in_fcl_sob_40 = create_object((empty($data['vessel_deposit_data']['in_fcl_sob_40']) ? null : $data['vessel_deposit_data']['in_fcl_sob_40']), 225.00, 'in'); $in_emp_sob_20 = create_object((empty($data['vessel_deposit_data']['in_emp_sob_20']) ? null : $data['vessel_deposit_data']['in_emp_sob_20']), 80.00, 'in'); $in_emp_sob_40 = create_object((empty($data['vessel_deposit_data']['in_emp_sob_40']) ? null : $data['vessel_deposit_data']['in_emp_sob_40']), 120.00, 'in'); $in_oog_20 = create_object((empty($data['vessel_deposit_data']['in_oog_20']) ? null : $data['vessel_deposit_data']['in_oog_20']), 250.00, 'in'); $in_oog_40 = create_object((empty($data['vessel_deposit_data']['in_oog_40']) ? null : $data['vessel_deposit_data']['in_oog_40']), 500.00, 'in'); $in_breakbulk = create_object((empty($data['vessel_deposit_data']['in_breakbulk']) ? null : $data['vessel_deposit_data']['in_breakbulk']), 16.25, 'in'); $in_master_packs = create_object((empty($data['vessel_deposit_data']['in_master_packs']) ? null : $data['vessel_deposit_data']['in_master_packs']), 73.10, 'in'); $in_steel = create_object((empty($data['vessel_deposit_data']['in_steel']) ? null : $data['vessel_deposit_data']['in_steel']), 73.10, 'in'); $in_vehicles = create_object((empty($data['vessel_deposit_data']['in_vehicles']) ? null : $data['vessel_deposit_data']['in_vehicles']), 12.90, 'in'); $in_dry_bulk = create_object((empty($data['vessel_deposit_data']['in_dry_bulk']) ? null : $data['vessel_deposit_data']['in_dry_bulk']), 15.25, 'in'); $in_others = create_object((empty($data['vessel_deposit_data']['in_others']) ? null : $data['vessel_deposit_data']['in_others']), 5.38, 'in'); $out_fcl_20 = create_object((empty($data['vessel_deposit_data']['out_fcl_20']) ? null : $data['vessel_deposit_data']['out_fcl_20']), 150.00, 'out'); $out_fcl_40 = create_object((empty($data['vessel_deposit_data']['out_fcl_40']) ? null : $data['vessel_deposit_data']['out_fcl_40']), 225.00, 'out'); $out_emp_20 = create_object((empty($data['vessel_deposit_data']['out_emp_20']) ? null : $data['vessel_deposit_data']['out_emp_20']), 80.00, 'out'); $out_emp_40 = create_object((empty($data['vessel_deposit_data']['out_emp_40']) ? null : $data['vessel_deposit_data']['out_emp_40']), 120.00, 'out'); $out_fcl_trans_20 = create_object((empty($data['vessel_deposit_data']['out_fcl_trans_20']) ? null : $data['vessel_deposit_data']['out_fcl_trans_20']), 80.00, 'out'); $out_fcl_trans_40 = create_object((empty($data['vessel_deposit_data']['out_fcl_trans_40']) ? null : $data['vessel_deposit_data']['out_fcl_trans_40']), 144.00, 'out'); $out_fcl_restow_20 = create_object((empty($data['vessel_deposit_data']['out_fcl_restow_20']) ? null : $data['vessel_deposit_data']['out_fcl_restow_20']), 300.00, 'out'); $out_fcl_restow_40 = create_object((empty($data['vessel_deposit_data']['out_fcl_restow_40']) ? null : $data['vessel_deposit_data']['out_fcl_restow_40']), 450.00, 'out'); $out_emp_restow_20 = create_object((empty($data['vessel_deposit_data']['out_emp_restow_20']) ? null : $data['vessel_deposit_data']['out_emp_restow_20']), 160.00, 'out'); $out_emp_restow_40 = create_object((empty($data['vessel_deposit_data']['out_emp_restow_40']) ? null : $data['vessel_deposit_data']['out_emp_restow_40']), 240.00, 'out'); $out_fcl_sob_20 = create_object((empty($data['vessel_deposit_data']['out_fcl_sob_20']) ? null : $data['vessel_deposit_data']['out_fcl_sob_20']), 150.00, 'out'); $out_fcl_sob_40 = create_object((empty($data['vessel_deposit_data']['out_fcl_sob_40']) ? null : $data['vessel_deposit_data']['out_fcl_sob_40']), 225.00, 'out'); $out_emp_sob_20 = create_object((empty($data['vessel_deposit_data']['out_emp_sob_20']) ? null : $data['vessel_deposit_data']['out_emp_sob_20']), 80.00, 'out'); $out_emp_sob_40 = create_object((empty($data['vessel_deposit_data']['out_emp_sob_40']) ? null : $data['vessel_deposit_data']['out_emp_sob_40']), 120.00, 'out'); $out_oog_20 = create_object((empty($data['vessel_deposit_data']['out_oog_20']) ? null : $data['vessel_deposit_data']['out_oog_20']), 250.00, 'out'); $out_oog_40 = create_object((empty($data['vessel_deposit_data']['out_oog_40']) ? null : $data['vessel_deposit_data']['out_oog_40']), 500.00, 'out'); $out_breakbulk = create_object((empty($data['vessel_deposit_data']['out_breakbulk']) ? null : $data['vessel_deposit_data']['out_breakbulk']), 16.25, 'out'); $out_master_packs = create_object((empty($data['vessel_deposit_data']['out_master_packs']) ? null : $data['vessel_deposit_data']['out_master_packs']), 73.10, 'out'); $out_steel = create_object((empty($data['vessel_deposit_data']['out_steel']) ? null : $data['vessel_deposit_data']['out_steel']), 73.10, 'out'); $out_vehicles = create_object((empty($data['vessel_deposit_data']['out_vehicles']) ? null : $data['vessel_deposit_data']['out_vehicles']), 12.90, 'out'); $out_dry_bulk = create_object((empty($data['vessel_deposit_data']['out_dry_bulk']) ? null : $data['vessel_deposit_data']['out_dry_bulk']), 15.25, 'out'); $out_others = create_object((empty($data['vessel_deposit_data']['out_others']) ? null : $data['vessel_deposit_data']['out_others']), 5.38, 'out'); $inward_total = $in_fcl_20['amount'] + $in_fcl_40['amount'] + $in_emp_20['amount'] + $in_emp_40['amount'] + $in_fcl_trans_20['amount'] + $in_fcl_trans_40['amount'] + $in_fcl_restow_20['amount'] + $in_fcl_restow_40['amount'] + $in_emp_restow_20['amount'] + $in_emp_restow_40['amount'] + $in_fcl_sob_20['amount'] + $in_fcl_sob_40['amount'] + $in_emp_sob_20['amount'] + $in_emp_sob_40['amount'] + $in_oog_20['amount'] + $in_oog_40['amount'] + $in_breakbulk['amount'] + $in_master_packs['amount'] + $in_steel['amount'] + $in_vehicles['amount'] + $in_dry_bulk['amount'] + $in_others['amount']; $outward_total = $out_fcl_20['amount'] + $out_fcl_40['amount'] + $out_emp_20['amount'] + $out_emp_40['amount'] + $out_fcl_trans_20['amount'] + $out_fcl_trans_40['amount'] + $out_fcl_restow_20['amount'] + $out_fcl_restow_40['amount'] + $out_emp_restow_20['amount'] + $out_emp_restow_40['amount'] + $out_fcl_sob_20['amount'] + $out_fcl_sob_40['amount'] + $out_emp_sob_20['amount'] + $out_emp_sob_40['amount'] + $out_oog_20['amount'] + $out_oog_40['amount'] + $out_breakbulk['amount'] + $out_master_packs['amount'] + $out_steel['amount'] + $out_vehicles['amount'] + $out_dry_bulk['amount'] + $out_others['amount'] @endphp @endif
@csrf
{{-- --}}
{{-- ---------------- --}}
INWARD UNITS QUANTITY RATES AMOUNT
FCL 20' $ 150.00 $ {{number_format($in_fcl_20['amount'],2)}}
40' $ 225.00 $ {{number_format($in_fcl_40 ['amount'], 2)}}
EMPTIES 20' $ 80.00 $ {{number_format($in_emp_20 ['amount'], 2)}}
40' $ 120.00 $ {{number_format($in_emp_40 ['amount'], 2)}}
FCL TRANSHIPMENT 20' $ 80.00 $ {{number_format($in_fcl_trans_20 ['amount'], 2)}}
40' $ 144.00 $ {{number_format($in_fcl_trans_40 ['amount'], 2)}}
FCL RESTOW 20' $ 300.00 $ {{number_format($in_fcl_restow_20 ['amount'], 2)}}
40' $ 450.00 $ {{number_format($in_fcl_restow_40 ['amount'], 2)}}
EMPTIES RESTOW 20' $ 160.00 $ {{number_format($in_emp_restow_20 ['amount'], 2)}}
40' $ 240.00 $ {{number_format($in_emp_restow_40 ['amount'], 2)}}
FCL SOB 20' $ 150.00 $ {{number_format($in_fcl_sob_20 ['amount'], 2)}}
40' $ 225.00 $ {{number_format($in_fcl_sob_40 ['amount'], 2)}}
EMPTIES SOB 20' $ 80.00 $ {{number_format($in_emp_sob_20 ['amount'], 2)}}
40' $ 120.00 $ {{number_format($in_emp_sob_40 ['amount'], 2)}}
OOG 20' $ 250.00 $ {{number_format($in_oog_20 ['amount'], 2)}}
40' $ 500.00 $ {{number_format($in_oog_40 ['amount'], 2)}}
BREAKBULK $ 16.25 $ {{number_format($in_breakbulk ['amount'], 2)}}
MASTER PACKS $ 73.10 $ {{number_format($in_master_packs ['amount'], 2)}}
STEEL $ 73.10 $ {{number_format($in_steel ['amount'], 2)}}
VEHICLES $ 12.90 $ {{number_format($in_vehicles ['amount'], 2)}}
DRY BULK $ 15.25 $ {{number_format($in_dry_bulk ['amount'], 2)}}
OTHERS: $ 5.38 $ {{number_format($in_others ['amount'], 2)}}
SUB-TOTAL $ {{number_format($inward_total, 2)}}
{{--
--}}
OUTWARD UNITS QUANTITY RATES AMOUNT
FCL 20' $ 150.00 $ {{number_format($out_fcl_20['amount'], 2)}}
40' $ 225.00 $ {{number_format($out_fcl_40['amount'], 2)}}
EMPTIES 20' $ 80.00 $ {{number_format($out_emp_20['amount'], 2)}}
40' $ 120.00 $ {{number_format($out_emp_40['amount'], 2)}}
FCL TRANSHIPMENT 20' $ 80.00 $ {{number_format($out_fcl_trans_20['amount'], 2)}}
40' $ 144.00 $ {{number_format($out_fcl_trans_40['amount'], 2)}}
FCL RESTOW 20' $ 300.00 $ {{number_format($out_fcl_restow_20['amount'], 2)}}
40' $ 450.00 $ {{number_format($out_fcl_restow_40['amount'], 2)}}
EMPTIES RESTOW 20' $ 160.00 $ {{number_format($out_emp_restow_20['amount'], 2)}}
40' $ 240.00 $ {{number_format($out_emp_restow_40['amount'], 2)}}
FCL SOB 20' $ 150.00 $ {{number_format($out_fcl_sob_20['amount'], 2)}}
40' $ 225.00 $ {{number_format($out_fcl_sob_40['amount'], 2)}}
EMPTIES SOB 20' $ 80.00 $ {{number_format($out_emp_sob_20['amount'], 2)}}
40' $ 120.00 $ {{number_format($out_emp_sob_40['amount'], 2)}}
OOG 20' $ 250.00 $ {{number_format($out_oog_20['amount'], 2)}}
40' $ 500.00 $ {{number_format($out_oog_40['amount'], 2)}}
BREAKBULK $ 16.25 $ {{number_format($out_breakbulk['amount'], 2)}}
MASTER PACKS $ 73.10 $ {{number_format($out_master_packs['amount'], 2)}}
STEEL $ 73.10 $ {{number_format($out_steel['amount'], 2)}}
VEHICLES $ 12.90 $ {{number_format($out_vehicles['amount'], 2)}}
DRY BULK $ 15.25 $ {{number_format($out_dry_bulk['amount'], 2)}}
OTHERS: $ 5.38 $ {{number_format($out_others['amount'], 2)}}
SUB-TOTAL $ {{number_format($outward_total, 2)}}
{{--
--}}
$ {{number_format(($inward_total + $outward_total), 2)}}
PAYMENT REFERENCE IMAGE:   @if($data AND $data[0]->attachment) @endif

USER NAME:

{{ $userData->name }}

COMPANY NAME:

{{ $userData->company }}

DATE:

{{ date("Y/m/d") }}

TIME:

{{ date("h:i a") }}

Please ensure that this form is submitted during Customer Service working hours: between 08:00 and 17:00 hours on weekdays and between 08:00 and 13:00 on Saturdays. FPTL accepts no responsibility if the forms are submitted outside working hours and any transactions not being attended to.
Cancel
@include('layouts.footer')