{!! Form::open(['url' => action([\App\Http\Controllers\PurchaseRequisitionController::class, 'store']), 'method' => 'post', 'id' => 'add_purchase_requisition_form' ]) !!}
@component('components.widget', ['class' => 'box-solid', 'icon' => 'fa fa-file-alt text-primary', 'title' => __( 'lang_v1.purchase_requisition')])
{!! Form::label('brand_id', __('product.brand') . ':') !!}
{!! Form::select('brand_id[]', $brands, null, ['class' => 'form-control select2', 'multiple', 'id' => 'brand_id']); !!}
{!! Form::label('category_id', __('product.category') . ':') !!}
{!! Form::select('category_id[]', $categories, null, ['class' => 'form-control select2', 'multiple', 'id' => 'category_id']); !!}
@if(count($business_locations) == 1)
@php
$default_location = current(array_keys($business_locations->toArray()));
$search_disable = false;
@endphp
@else
@php $default_location = null;
$search_disable = true;
@endphp
@endif
{!! Form::label('location_id', __('purchase.business_location').':') !!}
{!! Form::select('location_id', $business_locations, $default_location, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
@endcomponent
@component('components.widget', ['class' => 'box-solid','icon' => 'fa fa-file text-primary', 'title' => __( 'lang_v1.purchase_requisition')])
{!! Form::label('ref_no', __('purchase.ref_no').':') !!}
@show_tooltip(__('lang_v1.leave_empty_to_autogenerate'))
{!! Form::text('ref_no', null, ['class' => 'form-control bd-rd-7']); !!}
{!! Form::label('delivery_date', __('lang_v1.required_by_date') . ':') !!}
{!! Form::text('delivery_date', null, ['class' => 'form-control bd-rd-7', 'readonly']); !!}
@endcomponent
@component('components.widget', ['class' => 'box-solid', 'icon' => 'fa fa-file text-primary', 'title' => __( 'lang_v1.purchase_requisition')])
@lang('sale.product') |
@lang('product.alert_quantity') |
@lang('lang_v1.required_quantity') |
|
@endcomponent
{!! Form::close() !!}
@endsection
@section('javascript')
@endsection