@extends('layouts.factor-master') @section('content')

@lang('layout.ProfitAndLost') @lang('layout.Contract')


@lang('layout.Number') @lang('layout.ReferenceNumber') @lang('layout.Customer') @lang('layout.Amount') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.Date') @lang('layout.Status') @lang('layout.User')
{{ $contract->number}} {{ $contract->ref_no}} {{ $contract->Customer}} {{ $contract->amount}} {{ $contract->currency}} {{ $contract->rate}} {{ $contract->date}} @if($contract->status == "Active") @lang('layout.Active') @else @lang('layout.Closed') @endif {{ $contract->user}}
@lang('layout.DeliveryDate') @lang('layout.Income') @lang('layout.Expense') @lang('layout.Description')
{{ $contract->delivery_date}} {{ $contract->Income}} {{ $contract->Expense}} {{ $contract->description}}

@lang('layout.ItemDetails')

@foreach($data AS $record) @endforeach
#
@lang('layout.Source') @lang('layout.Destination') @lang('layout.ItemName') @lang('layout.Width') @lang('layout.Length') @lang('layout.Height') @lang('layout.Volume') @lang('layout.Weight') @lang('layout.Quantity') @lang('layout.Density') @lang('layout.Weight') @lang('layout.Package') @lang('layout.Volume') @lang('layout.Package') @lang('layout.Price') @lang('layout.Discount') @lang('layout.Expense') @lang('layout.ExpenseDetails') @lang('layout.Total')
{{++$count}} {{$record->source_name}} {{$record->destination_name}} {{$record->item_description1}}
{{$record->item_description2}}
{{$record->item_description3}}
{{$record->width}} {{$record->length}} {{$record->height}} {{$record->volume}} {{$record->weight}} {{$record->quantity_in}}
Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 108

Warning: Attempt to read property "weight" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 108

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 108

Warning: Attempt to read property "quantity_in" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 108

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 109

Warning: Attempt to read property "volume" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 109

Warning: Undefined variable $record in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 109

Warning: Attempt to read property "quantity_in" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 109
{{myRound($Density)}}
{{myRound($package_weight)}} {{myRound($package_volume)}} {{$record->price}} {{$record->discount}} {{myRound($record->ex_amount)}} {{$record->ex_description}} {{myRound($record->amount)}}

@lang('layout.OnHand')

@foreach($stock_onHand AS $record1) @endforeach
#
@lang('layout.Source') @lang('layout.Destination') @lang('layout.ItemName') @lang('layout.Width') @lang('layout.Length') @lang('layout.Height') @lang('layout.Volume') @lang('layout.Weight') @lang('layout.Quantity') @lang('layout.Density') @lang('layout.Weight') @lang('layout.Package') @lang('layout.Volume') @lang('layout.Package') @lang('layout.Price') @lang('layout.Total')
{{++$count}} {{$record1->source_name}} {{$record1->destination_name}} {{$record1->item_description1}} {{$record1->width}} {{$record1->length}} {{$record1->height}} {{$record1->volume}} {{$record1->weight}} {{$record1->quantity_in}}
Warning: Undefined variable $record1 in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 172

Warning: Attempt to read property "weight" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 172

Warning: Undefined variable $record1 in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 172

Warning: Attempt to read property "quantity_in" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 172

Warning: Undefined variable $record1 in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 173

Warning: Attempt to read property "volume" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 173

Warning: Undefined variable $record1 in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 173

Warning: Attempt to read property "quantity_in" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 173
{{myRound($Density)}}
{{myRound($package_weight)}} {{myRound($package_volume)}} {{$record1->price}} {{myRound($record1->amount)}}

@lang('layout.TransferAndLoading')

@foreach($cargoLoading AS $record2) @endforeach
#
@lang('layout.Number') @lang('layout.Date') @lang('layout.Type') @lang('layout.Responsible') @lang('menu.Container') @lang('menu.Vehicle') @lang('layout.Driver') @lang('layout.WayBillNumber') @lang('layout.TransitNumber') @lang('layout.Site') @lang('layout.ItemName') @lang('layout.Weight') @lang('layout.Quantity')
{{++$count}} {{ $record2->number}} {{convertDate($record2->date)}} {!! __('layout.' . ucfirst($record2->type)) !!} {{ $record2->employee}} {{ $record2->container}} @if($record2->driver_type == 'ForeignDriver') {{ $record2->other_vehicle_name}} @else {{ $record2->vehicle}} @endif @if($record2->driver_type == 'ForeignDriver') {{ $record2->driver}} {{ $record2->other_driver_name}} @else {{ $record2->driver}} @endif {{ $record2->cmr_number}} {{ $record2->transit_number}} {{$record2->source_site}} {{$record2->name}} {{$record2->weight}} {{$record2->quantity}}

@lang('menu.Delivery')

@foreach($cargoDeliveryDetail AS $record3) @endforeach
#
@lang('layout.Number') @lang('layout.Date') @lang('menu.Container') @lang('layout.TransitNumber') @lang('layout.Description') @lang('layout.Item') @lang('layout.Destination') @lang('layout.Width') @lang('layout.Height') @lang('layout.Length') @lang('layout.Weight') @lang('layout.Quantity') @lang('layout.Price') @lang('layout.Volume')
{{++$count}} {{ $record3->number}} {{convertDate($record3->date)}} {{ $record3->container}} {{ $record3->transit_number}} {{ $record3->description}} {{$record3->name}} {{$record3->site}} {{$record3->width}} {{$record3->height}} {{$record3->length}} {{$record3->weight}} {{$record3->quantity}} {{$record3->price}} {{$record3->volume}}

@lang('layout.ItemExpense')

@foreach($itemExpense AS $record4) @endforeach @if($itemExpenseAmount) @endif
#
@lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Weight') @lang('layout.Quantity') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.TotalExpenses')
{{++$count}} {{$record4->name}} {{$record4->destination}} {{$record4->weight}} {{$record4->quantity}} {{$record4->currency}} {{$record4->rate}} {{myRound($record4->totalAmount)}}
@lang('layout.Total') {{myRound($itemExpenseAmount->totalAmount)}} {{ $contract->currency}}

@lang('layout.AdjustmentList')

@foreach($cargoWastages AS $record5)
Warning: Undefined variable $record5 in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 361

Warning: Attempt to read property "amount" on null in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 361
@endforeach @if($adjustment) @endif
#
@lang('layout.Number') @lang('layout.Date') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Weight') @lang('layout.Quantity') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.Price') @lang('layout.Total') @lang('layout.Description')
{{++$count}} {{$record5->number}} {{convertDate($record5->date)}} {{$record5->item_description1}} {{$record5->site}} {{$record5->weight}} {{$record5->quantity}} {{$record5->currency}} {{$record5->rate}} {{myRound($record5->price)}} {{myRound($record5->price * $record5->quantity)}} {{$record5->description}}
@lang('layout.Total') {{myRound($adjustment * $contract->rate)}} {{ $contract->currency}}

@lang('layout.Total')


Warning: Undefined variable $itemExpenseAmount in E:\Ampps\www\CAS\resources\views\cargo_contract_order\contract_profitandlost.blade.php on line 402
@lang('layout.Currency') @lang('layout.Amount') @lang('layout.Adjustment') @lang('layout.TotalExpenses') @lang('layout.Income')
{{ $contract->currency}} {{ myRound($contract->amount)}} {{myRound($adjustment * $contract->rate)}} {{myRound($itemExpenseAmount)}} {{myRound($contract->amount - ($adjustment * $contract->rate) - $itemExpenseAmount)}}
@endsection