@extends('layouts.master') @section('content') @php $PayType = config('custom.PayType'); $states = config('custom.states'); $driverType = config('custom.driverType'); $bad_zone = config('custom.bad_zone'); $tTypes = config('custom.trailers_types'); $vendors = config('custom.vendors'); $repairTypes = config('custom.repairTypes'); @endphp @php $validate = []; $activeTab1 = ''; $activeTab2 = ''; $currentTab1 = ''; $currentTab2 = ''; @endphp @if ($errors->any()) @foreach ($errors->all() as $error) @php $validate[] = $error; @endphp @endforeach @endif @if ( $errors->has('STATUS') || $errors->has('FIRST_NAME') || $errors->has('LAST_NAME') || $errors->has('EXPIRY_DATE') || $errors->has('DL_STATE_PROV') || $errors->has('ENDORSEMENTS') || $errors->has('CODE')) @php $currentTab1 = 'current'; $activeTab1 = 'active'; @endphp @elseif ( $errors->has('PHONE') || $errors->has('EMAIL') || $errors->has('CELL_PHONE') || $errors->has('EMERGENCY_PHONE') || $errors->has('SECONDARY_CONTRACT') || $errors->has('NOSMS')) @php $currentTab2 = 'current'; $activeTab2 = 'active'; @endphp @else @php $currentTab1 = 'current'; $activeTab1 = 'active'; @endphp @endif @php $TRAILER_ID = 0; $TRAILER_TYPE = $LENGTH_1 = ''; $billing_total = $load->load_rate + $ec_total; $profit = $load->load_rate + $ec_total - $grandExpenseTotal; @endphp @section('style') @endsection()

Loads Edit

Loads # {{$load->bidid}}

@csrf
@csrf

Customer Info


Truck Info


CLIENT_ID) && $checkcustomer->CLIENT_ID != $load->mc_id) required @endif>
@if(!empty($load->LOAD_DOCS) && file_exists(public_path('load/' . $load->LOAD_DOCS))) @endif
did)) style="display:block" @else style="display:none" @endif> {{-- --}}
Cancel

Cargo


Cancel

Route


@for ($i = 1; $i <= 5; $i++)
@endfor
 
home_trip) ? 'checked' : '' }} >

Check In-Out Info


@php $arrivaldate = !empty($load->arrival_date) ? date('Y-m-d', strtotime($load->arrival_date)) : ''; @endphp
@php $delivereddate = !empty($load->deliver_date) ? date('Y-m-d', strtotime($load->deliver_date)) : ''; @endphp
@if($statemile->isNotEmpty())

Miles by State : Promiles


@foreach($statemile as $sm) @endforeach
State Total Miles
{{ $sm->state ?? 'N/A'}} {{ $sm->totalmiles ?? 'N/A'}}
@endif
Cancel

Map & Directions


Cancel
Billing Total:

${{ number_format($billing_total, 2) }}

Expense Total:

$ {{ number_format($grandExpenseTotal, 2) }}

Profit:

$ {{ number_format($profit, 2) }}

Load Expenses

Total Expenses:{{count($expenses)}} Amount: ${{ number_format($exptotalAmount,2)}}

@php $i=1; $SERVICE_CODES = []; @endphp @if($expenses->isEmpty()) @else @foreach($expenses as $expense) @php $i++; @endphp @endforeach @endif

Driver Pay

Total Expenses:{{count($driverexpenses) ?? 0}} Amount: ${{ number_format($driverexptotalAmount,2)}}

@php $i=1; $SERVICE_CODES = []; @endphp @if($expenses->isEmpty()) @else @if(!empty($driverexpenses)) @foreach($driverexpenses as $expense) @php $i++; @endphp @endforeach @endif @endif

Documents


Notes


Billing


@if(isset($invoice) && isset($invoice->is_billed) && (int)$invoice->is_billed === 1)
@php $ec_sum = 0; $ec_sum = $load->load_rate + $ec_total; @endphp Invoice #: {{$invoice->invoice_number}}
Customer Name: @if ($load->mc_id) {{ $customers->firstWhere('CLIENT_ID', $load->mc_id)->NAME ?? 'Customer' }} @else Customer @endif Load #:{{$invoice->load_id}} Balance Due: {{number_format($invoice->amount,2)}} Due Date: {{convertToMdy($invoice->due_date)}}
@else
@endif

Status History


Email History