@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 @section('style') @endsection()

Trailer Edit

@csrf

Basic


@error('ACTIVE')

{{ $message }}

@enderror
@error('SIN_NUMBER')

{{ $message }}

@enderror
@error('TRAILER_ID')

{{ $message }}

@enderror
@error('USER1')

{{ $message }}

@enderror
@error('PLATE')

{{ $message }}

@enderror
@error('YEAR')

{{ $message }}

@enderror
@error('TRAILER_TYPE')

{{ $message }}

@enderror
@error('LENGTH_1')

{{ $message }}

@enderror
@error('VIN')

{{ $message }}

@enderror
@error('MAXIMUM_WEIGHT')

{{ $message }}

@enderror
@error('AXLES')

{{ $message }}

@enderror
@error('EMPTY_WEIGHT')

{{ $message }}

@enderror
@error('ODOMETER')

{{ $message }}

@enderror

Cost of Ownership


OWNER_TYPE ? 'checked' : '' }}> COMPANY OWNER_TYPE ? 'checked' : '' }}> OWNER OPERATOR @error('OWNER_TYPE')

{{ $message }}

@enderror
LEASE_PUR ? 'checked' : '' }}> LEASED LEASE_PUR ? 'checked' : '' }}> PURCHASED @error('LEASE_PUR')

{{ $message }}

@enderror
@error('LEASE_PUR_FROM')

{{ $message }}

@enderror
@error('LEASE_PUR_DATE')

{{ $message }}

@enderror
@error('SOLD_TO')

{{ $message }}

@enderror
@error('SOLD_DATE')

{{ $message }}

@enderror
@error('LEASE_PUR_AMT')

{{ $message }}

@enderror
@error('SOLD_AMT')

{{ $message }}

@enderror
@error('RESIDUAL_VALUE')

{{ $message }}

@enderror
@error('LEASE_TERM')

{{ $message }}

@enderror
@error('LEASE_PAYMENT')

{{ $message }}

@enderror
@error('LEASE_RATE')

{{ $message }}

@enderror
@error('LEASE_BILL')

{{ $message }}

@enderror

Safety & Reminders


@error('LIC_1_EXP_DATE')

{{ $message }}

@enderror
@error('LAST_MAINTENANCE')

{{ $message }}

@enderror
@error('LIC_2_EXP_DATE')

{{ $message }}

@enderror
@error('INSURANCE_EXPIRY')

{{ $message }}

@enderror
@error('HUBOMETER')

{{ $message }}

@enderror
@error('LAST_HUB_READING')

{{ $message }}

@enderror

Dispatch


@php $trailer_LOAD_BARS = !empty($trailer->LOAD_BARS) ? $trailer->LOAD_BARS : 0; @endphp
@php $trailer_PADS = !empty($trailer->PADS) ? $trailer->PADS : 0; @endphp
@php $trailer_CHAINS = !empty($trailer->CHAINS) ? $trailer->CHAINS : 0; @endphp
@php $trailer_LEVELERS = !empty($trailer->LEVELERS) ? $trailer->LEVELERS : 0; @endphp
@php $trailer_RAMPS = !empty($trailer->RAMPS) ? $trailer->RAMPS : 0; @endphp
@php $trailer_TARPS = !empty($trailer->TARPS) ? $trailer->TARPS : 0; @endphp
@php $trailer_SIDES = !empty($trailer->SIDES) ? $trailer->SIDES : 0; @endphp
@php $trailer_OVERSIZE = !empty($trailer->OVERSIZE) ? $trailer->OVERSIZE : 0; @endphp
@php $trailer_STRAPS = !empty($trailer->STRAPS) ? $trailer->STRAPS : 0; @endphp
{!! htmlspecialchars_decode($trailer->COMMENTS) !!}

Specifications


SUSPENSION ? 'checked' : '' }}> AIR RIDE SUSPENSION ? 'checked' : '' }}> SPRING @error('SUSPENSION')

{{ $message }}

@enderror
TOP ? 'checked' : '' }}> METAL TOP ? 'checked' : '' }}> FIBERGLASS @error('TOP')

{{ $message }}

@enderror
FLOOR ? 'checked' : '' }}> WOOD FLOOR ? 'checked' : '' }}> METAL @error('FLOOR')

{{ $message }}

@enderror
TRAILER ? 'checked' : '' }}> STANDARD TRAILER ? 'checked' : '' }}> PLATE 101 @error('TRAILER')

{{ $message }}

@enderror

Repair


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

Expense


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

Photos & Documents


Allowed file types: png, jpg, jpeg.
@php $trailer_PHOTOS = !empty($trailer->PHOTOS) ? $trailer->PHOTOS : ''; @endphp @if(file_exists('trailers/photos/' . $trailer_PHOTOS) && !empty( $trailer_PHOTOS)) {{ $trailer_PHOTOS }} @endif
Allowed file types: png, jpg, jpeg.

Documents


@php $docs = !empty($trailer->DOCUMENTS) ? explode(',', $trailer->DOCUMENTS) : ''; @endphp
@if (!empty($docs)) @foreach ($docs as $doc)
@if(file_exists('trailers/documents/'. $doc) && !empty($doc)) {{ $doc }} @endif @if (!$loop->last) ,
@endif
@endforeach @endif
Cancel
@endsection() @section('script') @endsection