--}}
{{-- echo Request::url(); --}}
{!! Form::open(['route' => 'indexaudit.generate', 'class' => 'reports-module', 'method' => 'POST', 'role' => 'form']) !!}
{{-- @dd($request) --}}
{{-- @dd($request['year']) --}}
{!! Form::label('year', 'Select Academic Year') !!}
{!! Form::select(
'year',
$academic_years,
$request['year'] ?? null,
$errors->has('academic_year')
? ['class' => 'form-control is-invalid', 'id' => 'year']
: ['class' => 'form-control', 'id' => 'year'],
) !!}
{{-- --}}
{!! Form::label('year_study', 'Select Year of Study') !!}
{!! Form::select(
'year_study',
$years,
$request['year_study'] ?? null,
$errors->has('year')
? ['class' => 'form-control is-invalid', 'id' => 'year_study']
: ['class' => 'form-control', 'id' => 'year_study'],
) !!}
{!! Form::label('semester', 'Select Semester') !!}
{!! Form::select(
'semester',
$semester,
$request['semester'] ?? null,
$errors->has('semester')
? ['class' => 'form-control is-invalid', 'id' => 'semester']
: ['class' => 'form-control', 'id' => 'semester'],
) !!}
{!! Form::label('batch_no', 'Select Batch') !!}
{!! Form::select(
'batch_no',
$batches,
$request['batch_no'] ?? null,
$errors->has('batch_no')
? ['class' => 'form-control is-invalid', 'id' => 'batch_no']
: ['class' => 'form-control', 'id' => 'batch_no'],
) !!}
{!! Form::label('department_id', 'Select Department') !!}
{!! Form::select(
'department_id',
$departments,
$request['department_id'] ?? null,
$errors->has('department_id')
? ['class' => 'form-control is-invalid', 'id' => 'department_id']
: ['class' => 'form-control', 'id' => 'department_id'],
) !!}
{!! Form::label('course_id', 'Select Course') !!}
{!! Form::select(
'course_id',
[],
null,
$errors->has('course_id')
? ['class' => 'form-control is-invalid', 'id' => 'course_id']
: ['class' => 'form-control', 'id' => 'course_id'],
) !!}
{!! Form::label('programme_id', 'Select Programme') !!}
{!! Form::select(
'programme_id',
[],
null,
$errors->has('programme_id')
? ['class' => 'form-control is-invalid', 'id' => 'programme_id']
: ['class' => 'form-control', 'id' => 'programme_id'],
) !!}
{{ Form::button('Generate Report', ['type' => 'submit', 'class' => 'btn btn-lg btn-success pull-right', 'id' => 'generateBtn']) }}