@php $previousYearStart = new DateTime('first day of January last year 00:00:00'); // Format it as 'YYYY-MM-DDTHH:MM' $previousYearStartFormatted = $previousYearStart->format('Y-m-d\TH:i'); // Create a DateTime object for the end of the next year $nextYearEnd = new DateTime('last day of December next year 23:59:59'); // Format it as 'YYYY-MM-DDTHH:MM' $nextYearEndFormatted = $nextYearEnd->format('Y-m-d\TH:i'); @endphp {!! Form::open(["method" => route("user-history-store"), "id" => "multipleForm"]) !!}
{!! Form::select('user[0][]', $users, $user ? $user->id : null, ['class' => 'selectpicker form-control user', 'required', 'multiple']) !!}
{!! Form::select('condition[0][]', $conditions, null, ['class' => 'form-control condition', 'required']) !!} {!! Form::select("service[0][]", $services, null, ["class" => "form-control me-3 service"]) !!} {!! Form::text('notes[0][]', null, ['class' => 'form-control rmks me-3']) !!}
{!! Form::select('airline[0][]', $airlines, null,['class' => 'form-control airline']) !!}
{!! Form::submit("Submit", ['name' => "submit", 'id' => 'btnSubmit', 'class' => "btn btn-primary"]) !!}
{!! Form::close() !!}