@extends('layouts.app') @section('title', __('re_order.add')) @section('content')

@lang('re_order.add')

{!! Form::open([ 'url' => action('StockReOrderController@store'), 'method' => 'post', 'id' => 'stock_re_order_form', ]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {{-- {!! Form::select( 'select_location_id', $business_locations, $default_location->id ?? null, ['class' => 'form-control select2', 'id' => 'select_location_id', 'required'], $bl_attributes, ) !!} --}}
{!! 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('transaction_date', __('messages.date') . ':*') !!}
{!! Form::text('transaction_date', @format_datetime('now'), [ 'class' => 'form-control', 'readonly', 'disabled', 'required', ]) !!}
{!! Form::label('re_order_status', __('re_order.status') . ':') !!} {!! Form::select('re_order_status', $re_order_status, null, [ 'class' => 'form-control select2', 'id' => 're_order_status', ]) !!}

{{ __('stock_adjustment.search_products') }}

{!! Form::text('search_product', null, [ 'class' => 'form-control', 'id' => 'search_product_for_stock_reorder', 'placeholder' => __('re_order.search_product'), 'autofocus', ]) !!}
{!! Form::select('brand_id', $brands, null, [ 'placeholder' => 'Select Brand', 'class' => 'form-control select2 brand_id', ]) !!}
{!! Form::select('category_id', $categories, null, [ 'placeholder' => 'Select Category', 'class' => 'form-control select2 category_id', ]) !!}
@component('components.widget', ['class' => 'box-primary'])
@if ($is_admin) @foreach ($locations as $form_location) @if ($default_location->id != $form_location->id) @endif @endforeach @else @foreach ($locations_for_table_headers as $business_location) @if ($default_location->id != $business_location->id) @endif @endforeach @endif
@lang('sale.product') @lang('re_order.current_stock') ({{ $form_location->name }}) {{ $business_location->location->name }}
@endcomponent


{!! Form::hidden('is_save_and_print_1', 0, ['id' => 'is_save_and_print_1']) !!} {!! Form::hidden('is_save_and_print_2', 0, ['id' => 'is_save_and_print_2']) !!}
{{-- --}} {!! Form::close() !!}
@stop @section('javascript') @endsection