@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; $addRoute = isSeller() ? 'seller.add-stock.create' : 'admin.individual-stock.create'; $paginateRoute = isSeller() ? 'seller.add-stock.paginate' : 'admin.individual-stock.paginate'; $listRoute = isSeller() ? 'seller.add-stock.index' : 'admin.individual-stock.index'; @endphp @extends($layout) @section('content')
@if(!isSeller())
  • {!! Form::open(array('route' => $paginateRoute,'method' => 'GET','class'=>'filter_form mobile_filter col-md-12 extra_filters','id'=>'ajaxFilter','filterTable'=>"true")) !!} {{--
    --}}
    {!! Form::label("store_id", __('store.title'), ['class' => 'first-column']) !!} {!! Form::select('store_ids[]', $stores, '', ['class'=>'form-control select2 second-column', 'multiple' => true]) !!}
    {!! Form::submit( __('common.search'), ['class'=>'form-control btn btn-primary btn_sub search-btn']) !!} {!! __('common.reset') !!}
    {{--
    --}} {!! Form::close() !!}
@else
@if($isRunning)
The inventory period has started.
Press the stop button in order to stop the inventory period.
STOP @else
No ongoing inventory period.
Create a new inventory period by adding a title & pressing the start button.
{{ Form::open(['route' => 'seller.add-stock.store-period', 'method' => 'POST', 'id' => 'ajaxSave']) }}

{{ Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control'))}}
{{ Form::submit('START', array('class' => 'btn btn-primary width80'));}}
{{ Form::close() }} @endif
@endif @include('layouts.partials.messages')
{!! Form::select('limit', paginationLimitOptions(), defaultPerPage(), ['id'=>'pagination_limit']) !!}
{!! Form::text('search', null, ['id'=>'keyword_search','class'=>'form-control','placeholder'=>__('common.search').'...']) !!}
@endsection