@extends('layout.index') @if(isset($aVehiclesRoute->id)) @section('title','Edit Vehicle Route') @else @section('title','Add Vehicle Route') @endif @section('content')
@if ($message = Session::get('success'))
@endif
id)) action="{{route('add_edit.vehicle_route')}}" @else action="{{route('add_edit.vehicle_route', $aVehiclesRoute->id )}}" @endif method="post"> {{csrf_field()}}
@error('route_id'){{ $message }}@enderror
@error('type'){{ $message }}@enderror
@error('vehicle_number'){{ $message }}@enderror
{{-- Check if you are adding a new route --}} @if(!isset($aVehiclesRoute->id)) @else @endif @error('day'){{ $message }}@enderror

@endsection