@extends('layouts.master_backend') @section('content')

{{lang_trans('heading_filter_stock_history')}}

{{ Form::open($search_data,array('url'=>route('search-stocks'),'id'=>"search-stocks", 'class'=>"form-horizontal form-label-left")) }}
{{Form::select('product_id',$products,null,['class'=>"form-control",'placeholder'=>lang_trans('ph_select')])}}
{{Form::select('is_stock',['add'=>'Add','subtract'=>'Subtract'],null,['class'=>"form-control",'placeholder'=>lang_trans('ph_select')])}}
{{Form::text('date_from',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_from')])}}
{{Form::text('date_to',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_to')])}}

{{ Form::close() }}

{{lang_trans('heading_stock_history')}}


@if($datalist->count()>0) @foreach($datalist as $k=>$val) @endforeach @endif
{{lang_trans('txt_sno')}} {{lang_trans('txt_product')}} {{lang_trans('txt_price')}} {{lang_trans('txt_qty')}} {{lang_trans('txt_stock')}} {{lang_trans('txt_by')}} {{lang_trans('txt_date')}}
{{$k+1}} {{$val->product->name}} @if($val->price>0) {{getCurrencySymbol()}} {{$val->price}} @endif {{$val->qty}} {{ucfirst($val->stock_is)}} {{ucfirst($val->user->name)}} {{dateConvert($val->created_at,'d-m-Y h:i')}}
@endsection