@extends('layout.app') @section('title', 'Create Trip Sheet') @push('header_script') @endpush @section('content')
{!! Form::open(['route' => 'trip-sheet.store', 'method' => 'POST', 'class' => 'row g-3', 'id' => 'tripSheetForm']) !!}
Trip Details
{!! 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
@if($freightEntry) @else
{!! 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
Expenses (1 entry)

TRIP COMPUTER — LIVE
Total Revenue

₹0

Total Expense

₹0

Net P&L

₹0

Total KM Run
0 km
Revenue / KM
₹0
Net / KM
₹0
Diesel Filled
0 L
Mileage
0 km/L
Diesel Cost / KM
₹0
{!! Form::select('status', ['Draft' => 'Draft', 'In Progress' => 'In Progress', 'Completed' => 'Completed'], 'Draft', ['class' => 'form-select select2', 'id' => 'status']) !!}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush