@extends('layout.app') @section('title', 'Create Trip Sheet') @push('header_script') @endpush @section('content')
Back
@if(session('error') || session('error_msg')) @endif @if(session('success') || session('success_msg')) @endif @if($errors->any()) @endif {!! Form::open(['route' => 'trip-sheet.store', 'method' => 'POST', 'id' => 'tripSheetForm']) !!}
Trip Details & Vehicle Assignment
TRIP #{{ $nextTripSheetNo }}
{!! Form::select('vehicle_id', ['' => '-- Select Vehicle --'] + $vehicles, $freightEntry ? $freightEntry->vehicle_id : null, ['class' => 'form-control select2', 'id' => 'vehicle_id', 'required']) !!}
{!! Form::select('employee_id', ['' => '-- Select Driver --'] + $drivers, $freightEntry ? $freightEntry->employee_id : null, ['class' => 'form-control select2', 'id' => 'employee_id'] + ($freightEntry && $freightEntry->employee_id ? ['disabled' => 'disabled'] : [])) !!} @if($freightEntry && $freightEntry->employee_id) @endif
Consignment & Freight Revenue
@if($freightEntry) @else
New LR
{!! Form::select('freight_entry_id', ['' => '-- Select Freight Entry --'] + ($freightEntries ?? []), null, ['class' => 'form-control select2', 'id' => 'freight_entry_id']) !!}
@endif
@php $feMaterial = ''; $feWeight = ''; if($freightEntry && $freightEntry->items) { $feMaterial = $freightEntry->items->pluck('material_name')->filter()->unique()->implode(', '); $feWeight = $freightEntry->items->sum('charge_weight'); } @endphp
Trip Expenses & Diesel (1 entry)
Trip Computer & Telemetry
LIVE METRICS
Total Revenue

₹0

Total Expense

₹0

Net Profit / Loss

₹0

Total KM Run

0 km

Revenue / KM

₹0

Net Profit / KM

₹0

Diesel Filled

0 L

Vehicle Mileage

0 km/L

Diesel Cost / KM

₹0

Timing & Final Submission
{!! Form::select('status', ['Draft' => 'Draft', 'In Progress' => 'In Progress', 'Completed' => 'Completed'], 'Draft', ['class' => 'form-select select2', 'id' => 'status']) !!}
Cancel
{!! Form::close() !!}
@endsection @push('footer_script') @endpush