@extends("layout") @section("content")
{{ Form::open(array('route' => array('reports.inventory'), '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('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.stock-level-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) @empty @endforelse @endif
# {{Lang::choice('messages.commodity',1)}} {{Lang::choice('messages.batch-no',1)}} Quantity Received {{Lang::choice('messages.qty-issued',1)}} {{Lang::choice('messages.current-bal',1)}} {{Lang::choice('messages.expiry-date',1)}}
{{$i++}} {{Commodity::find($row->commodity_id)->name}} {{$row->batch_number }} {{$row->quantity_in}} {{$row->quantity_out}} {{$row->balance}} {{ date('d M Y', strtotime($row->expiry_date)) }}
{{Lang::choice('messages.no-data-found',1)}}
# {{Lang::choice('messages.commodity',1)}} {{Lang::choice('messages.supplier',1)}} {{Lang::choice('messages.batch-no',1)}} {{Lang::choice('messages.quantity',1)}} {{Lang::choice('messages.expiry-date',1)}} {{Lang::choice('messages.qty-issued',1)}} {{Lang::choice('messages.current-bal',1)}}
{{$i++}} {{$row->balance}} {{ $row->sourceOfStock($row->to_from_type,$row->to_from)->name }} {{$row->batch_number }} {{$row->quantity}} {{ date('d M Y', strtotime($row->expiry_date)) }} {{$row->balance}}
{{Lang::choice('messages.no-data-found',1)}}
@stop