@extends('admin.layouts.app') @php $routePrefix = request()->segment(1) ? request()->segment(1) . '.' : ''; @endphp @section('content')

Lab Reports

@can('report-add') Upload Report @endcan
{!! Form::open(['route' => $routePrefix . 'lab-patient-report.index', 'method' => 'get', 'id' => 'form-search']) !!}
{!! Form::label('search', __('Search by Patient Name/Code')) !!} {!! Form::text('search', request('search'), ['class' => 'form-control', 'placeholder' => 'Search patient...']) !!}
{!! Form::label('doctor_id', __('Doctor')) !!} {!! Form::select('doctor_id', ['' => 'All Doctors'] + $doctors->pluck('name', 'id')->toArray(), request('doctor_id'), ['class' => 'form-control select2']) !!}
{!! Form::label('report_type', __('Report Type')) !!} {!! Form::select('report_type', $reportTypesList->prepend('- Select Report Type -', ''), null, ['class' => 'form-control select2', 'data-required' => 'true']) !!} {{ $errors->first('report_type') }}
{{--
{!! Form::label('report_type', __('Report Type')) !!} {!! Form::select('report_type', ['' => 'All Report Types'] + $reportTypes->toArray(), request('report_type'), ['class' => 'form-control']) !!}
--}}
{!! Form::label('status', __('Status')) !!} {!! Form::select('status', ['' => 'All', 1 => 'Active', 0 => 'Inactive'], request('status'), ['class' => 'form-control']) !!}
{!! Form::submit(__('Search'), ['class' => 'btn btn-primary btn-sm']) !!} Reset
{!! Form::close() !!}
{{--
--}}
@endsection @section('bottom_js') @endsection