@extends("layout") @section("content")
{{ Form::open(array('route' => array('reports.aggregate.userStatistics'), 'class' => 'form-inline', 'role' => 'form')) }}
{{ Form::label('start', trans("messages.from")) }}
{{ Form::text('start', isset($input['start'])?$input['start']:date('Y-m-d'), array('class' => 'form-control standard-datepicker')) }}
{{ Form::label('end', trans("messages.to")) }}
{{ Form::text('end', isset($input['end'])?$input['end']:date('Y-m-d'), array('class' => 'form-control standard-datepicker')) }}

{{ Form::label('user', Lang::choice('messages.user',1)) }}
{{ Form::select('user', array(0 => '-- All --')+User::all()->sortBy('name')->lists('name','id'), isset($input['user'])?$input['user']:0, array('class' => 'form-control')) }}
{{ Form::label('report_type', Lang::choice('messages.report-type',1)) }}
{{ Form::select('report_type', $reportTypes, isset($input['report_type'])?$input['report_type']:0, array('class' => 'form-control')) }}
{{ Form::button(" ".trans('messages.view'), array('class' => 'btn btn-info', 'id' => 'filter', 'type' => 'submit')) }}
{{ Form::close() }}
{{ trans('messages.user-statistics-report') }}
@if (Session::has('message'))
{{ trans(Session::get('message')) }}
@endif
{{$reportTitle}}

@if($selectedReport==0) @forelse($reportData as $row) @empty @endforelse @elseif($selectedReport == 1) @forelse($reportData as $row)
{{Lang::choice('messages.name',1)}} {{Lang::choice('messages.received-tests',1)}} {{Lang::choice('messages.accepted-specimen',1)}} {{Lang::choice('messages.rejected-specimen',1)}} {{Lang::choice('messages.performed-tests',1)}} {{Lang::choice('messages.verified-tests',1)}}
{{$i++}} {{$row->name}} {{$row->created}} {{$row->specimen_registered}} {{$row->specimen_rejected}} {{$row->tested}} {{$row->verified}}
{{Lang::choice('messages.no-data-found',1)}}
{{Lang::choice('messages.patient-number',1)}} {{Lang::choice('messages.name',1)}} {{Lang::choice('messages.gender',1)}} {{Lang::choice('messages.age',1)}} {{Lang::choice('messages.registration-date',1)}}