@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

@csrf
@csrf

Load 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

Truck & Driver Info


@if(!empty($load->truck)) View Truck Info @endif
did)) style="display:block" @else style="display:none" @endif> {{-- --}}
@if(!empty($load->did)) View Driver Info @endif

Cargo


Cancel

Route

Total Miles : {{ (empty($load->total_miles) ? number_format($total_miles,2) : number_format($load->total_miles,2)) }} RPM: ${{ (empty($load->total_miles) ? number_format($load->load_rate/$total_miles,2) : number_format($load->load_rate/$load->total_miles,2)) }}


@for ($i = 1; $i <= 5; $i++)
@endfor
 

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

Map & Directions


Cancel

Dispatch


Driver Name: {{ $load->driver_name }}
Driver Phone: {{ $load->driver_phone }}
Truck #: {{ $load->unit_no }}