@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; $storeRoute = isSeller() ? 'seller.add-stock.store' : 'admin.individual-stock.store'; $listRoute = isSeller() ? 'seller.add-stock.index' : 'admin.individual-stock.index'; @endphp @extends($layout) @section('content')
{{ Form::open(['route' => $storeRoute, 'method' => 'POST', 'id' => 'ajaxSave']) }}
@php $class=!isSeller()?'4':'6'; @endphp @if(!isSeller())
{!! Form::label('store_id', __('store.title1'), ['class' => 'control-label mb-2']) !!} {!! Form::select('store_id', ['' => __('common.select-option')] + $stores, null, [ 'class' => 'form-control select2', 'data-actions-box' => 'true', 'data-width' => '100%', ]) !!}
@else {!! Form::hidden('store_id',sellerId()) !!} @endif
{{ Form::label('date', __('add_stock.date'), ['class' => 'control-label']) }} {{ Form::text('date', dateFormat(currentDate(), SHOW_DATE), ['class' => 'form-control', 'readonly' => true]) }}
{{ Form::label('remarks', __('add_stock.remarks'), ['class' => 'control-label']) }} {{ Form::textarea('remarks', null, ['class' => 'form-control', 'size' => '2x1']) }}

{!! __('stock_request.request_comment') !!}
{{ Form::select('department', $departments, null, array('class' => 'form-control select2', 'id' => 'department', 'data-live-search' => 'true')) }}
@php $inventoryTypes = inventoryType(); @endphp @if (isset($inventoryTypes) && count($inventoryTypes) > 0) @foreach ($inventoryTypes as $id => $inventoryType) @endforeach @endif
  • {{ Form::submit(__('common.save'), ['class' => 'btn btn-primary width80']) }}
  • {{ Form::close() }}
    @endsection @section('script') @include('layouts.add-stock-script' , ['route' => $route ?? '']) @endsection