@extends("layout") @section("content")
{{ Form::open(array('route' => array('reports.aggregate.infection'), '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('test_type', Lang::choice('messages.test-category',1)) }}
{{ Form::select('test_category', array(0 => '-- All --')+TestCategory::all()->sortBy('name')->lists('name','id'), isset($input['test_category'])?$input['test_category']:0, array('class' => 'form-control')) }}
{{ Form::button(" ".trans('messages.view'), array('class' => 'btn btn-info', 'id' => 'filter', 'type' => 'submit')) }}
{{ Form::close() }}
{{ trans('messages.infection-report') }}
@if (Session::has('message'))
{{ trans(Session::get('message')) }}
@endif

{{ trans('messages.infection-report') }} - @if($from!=$to) {{trans('messages.from').' '.$from.' '.trans('messages.to').' '.$to}} @else {{trans('messages.for').' '.date('d-m-Y')}} @endif

@foreach($ageRanges as $ageRange => $description) @endforeach @forelse($infectionData as $inf) @empty @endforelse {{$testRow}}
{{ Lang::choice('messages.test',1) }} {{ Lang::choice('messages.measure',1) }} {{ trans('messages.test-results') }} {{ trans('messages.gender') }} {{ trans('messages.measure-age-range') }} {{ trans('messages.mf-total') }} {{ Lang::choice('messages.total',1) }} {{ trans('messages.total-tests') }}
{{ $ageRange }}
{{trans('messages.no-records-found')}}
@stop