@php $opsDateFrom = \request("go_to_date") ? \request("go_to_date") : (\request("start_time") ? date('Y-m-d', strtotime(\request("start_time"))) : date('Y-m-d')) @endphp
@php $opsDateTo = \request("go_to_date") ? \request("go_to_date") : (\request("start_time") ? date('Y-m-d', strtotime(\request("start_time"))) : date('Y-m-d')) @endphp
{!! Form::open(['method' => 'GET', 'url' => URL::to('export/fleetwatch-report'), 'target' => "_blank", 'class' => 'form-inline']) !!}
{!! Form::label('reportType', 'Reports', ['class'=>'floatOnly center text-right']) !!}
{!! Form::select('reportType', ['ops' => 'OPS', 'crew' => 'Crew'], null, ['class' => 'form-control floatOnly']) !!}
{!! Form::label('fromDate', trans("content.from"), ['class'=>'floatOnly center']) !!}
{!! Form::text('fromDate', $opsDateFrom, [ 'id' => 'from_date', 'class' => 'form-control inputDateSmall floatOnly', "required" => "required"]) !!}
{!! Form::label('toDate', trans("content.to"), ['class'=>'floatOnly center']) !!}
{!! Form::text('toDate', $opsDateTo, [ 'id' => 'to_date', 'class' => 'form-control inputDateSmall floatOnly', "required" => "required"]) !!}
{!! Form::submit('Export', ['type' => 'submit', 'class' => 'btn btn-primary btn-sm floatOnly']) !!}
View
{!! Form::close() !!}