@extends('layout.app')
@section('title', 'Create Vehicle Toollist')
@push('header_script')
@endpush
@section('content')
{!! Form::open([
'route' => ['vehicle-tool-list.store'],
'class' => 'needs-validation',
'method' => 'post',
'autocomplete' => 'off',
'id' => 'toollistForm',
]) !!}
@if(request('redirect_to'))
@endif
{{-- ====== BASIC INFO ====== --}}
Basic Information
{!! Form::select(request('vehicle_id') ? '' : 'vehicle_id', ['' => '-- Select Vehicle --'] + $vehicles, old('vehicle_id', request('vehicle_id')), [
'class' => 'form-control select2',
'id' => 'vehicle_id',
'required',
request('vehicle_id') ? 'disabled' : ''
]) !!}
@if(request('vehicle_id'))
@endif
{{ $errors->first('vehicle_id') }}
{!! Form::select('employee_id', ['' => '-- Select Driver --'] + $drivers, old('employee_id'), [
'class' => 'form-control select2',
'id' => 'employee_id',
]) !!}
{{ $errors->first('employee_id') }}
{{-- GENERAL TAB --}}
{{-- Fastag --}}
{{-- Belts & Machines --}}
{{-- Tools --}}
{{-- Safety --}}
{{-- Others --}}
{{-- ====== RIGHT COLUMN: Spanners, Remarks ====== --}}
{{-- Wheel Spanner Sizes --}}
{{-- Remarks --}}
{{-- TYRES TAB --}}
{{-- BATTERIES TAB --}}
@if(request('redirect_to') == 'performance' && request('vehicle_id'))
Cancel
@else
Cancel
@endif
{!! Form::close() !!}
@endsection
@push('footer_script')
@endpush