@extends('layouts.app') @section('title', __('lang_v1.add_purchase_requisition')) @section('content')

@lang('lang_v1.add_purchase_requisition')

{!! Form::open(['url' => action([\App\Http\Controllers\PurchaseRequisitionController::class, 'store']), 'method' => 'post', 'id' => 'add_purchase_requisition_form' ]) !!} @component('components.widget', ['class' => 'box-solid'])
{!! 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'])
{!! Form::label('ref_no', __('purchase.ref_no').':') !!} @show_tooltip(__('lang_v1.leave_empty_to_autogenerate')) {!! Form::text('ref_no', null, ['class' => 'form-control']); !!}
{!! Form::label('delivery_date', __('lang_v1.required_by_date') . ':') !!}
{!! Form::text('delivery_date', null, ['class' => 'form-control', 'readonly']); !!}
@endcomponent @component('components.widget', ['class' => 'box-solid'])
@lang('sale.product') @lang('product.alert_quantity') @lang('lang_v1.required_quantity')
@endcomponent
{!! Form::close() !!}
@endsection @section('javascript') @endsection