@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }}

{{ Form::open(['url' => route('purchaseorder.store'), 'method'=>'POST', 'file'=>true, 'enctype'=>'multipart/form-data', 'name' => 'productconfigtab', 'id' => 'productconfigtab']) }}
{{ Form::text('vendor_invoice_id', !empty($vendorInvoiceId) ? $vendorInvoiceId : '', ["class"=>"form-control col-md-8","placeholder"=>__('lbl.Invoice_optional'),"id"=>"vendor_invoice_id","name"=>"vendor_invoice_id"]) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn btn-primary btn-sm posubmit ', 'type' => 'submit']) }} {{ __('lbl.cancel') }}
{!! Form::file('attachment') !!}

{{ __('lbl.unsaved_purchase_order') }}

{{ $vendor['vendor_name'] }}({{$vendor['id']}})
{{ $vendor['address_line_1'] }}, {{ $vendor['address_line_2'] }}
{{ $vendor['city'] }}, {{ $vendor['country'] }}, {{ $vendor['zip'] }}
{{ __('lbl.contact_name') }}:{{ $vendor['contact_name'] }}
{{ __('lbl.phone') }}:{{ $vendor['main_number'] }}, {{ __('lbl.fax') }}:{{ $vendor['fax'] }}
{{ __('lbl.email') }}:{{ $vendor['vendor_email'] }}
{{ __('lbl.account_number') }}:{{ $vendor['account_number'] }}
@if(!empty($estashippingaddress))
{{ Form::label('shipping_company_name',__('lbl.company_name'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_company_name', $estashippingaddress['company_name'], ["class"=>"form-control","placeholder"=>__('lbl.contact_name'),"id"=>"shipping_contact_name"]) }}
{{ Form::label('shipping_contact_name',__('lbl.contact_name'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_contact_name', $estashippingaddress['contact_name'], ["class"=>"form-control","placeholder"=>__('lbl.contact_name'),"id"=>"shipping_contact_name"]) }}
{{ Form::label('shipping_email',__('lbl.email'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_email', $establishment['email'], ["class"=>"form-control","placeholder"=>__('lbl.email'),"id"=>"shipping_email"]) }}
{{ Form::label('shipping_phone',__('lbl.phone'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_phone', $estashippingaddress['contact_phone'], ["class"=>"form-control","placeholder"=>__('lbl.phone'),"id"=>"shipping_phone"]) }}
{{ Form::label('shipping_address_line_1',__('lbl.address_1'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_address_line_1', $estashippingaddress['address_line_1'], ["class"=>"form-control","placeholder"=>__('lbl.address_1'),"id"=>"shipping_address_line_1"]) }}
{{ Form::label('shipping_address_line_2',__('lbl.address_2'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_address_line_2', $estashippingaddress['address_line_2'], ["class"=>"form-control","placeholder"=>__('lbl.address_2'),"id"=>"shipping_address_line_2"]) }}
{{ Form::label('shipping_city',__('lbl.city'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_city', $estashippingaddress['city'], ["class"=>"form-control","placeholder"=>__('lbl.city'),"id"=>"shipping_city"]) }}
{{ Form::label('shipping_country',__('lbl.country'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_country', $estashippingaddress['country'], ["class"=>"form-control","placeholder"=>__('lbl.country'),"id"=>"shipping_country"]) }}
{{ Form::label('shipping_state',__('lbl.state'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_state', $estashippingaddress['state'], ["class"=>"form-control","placeholder"=>__('lbl.state'),"id"=>"shipping_state"]) }}
{{ Form::label('shipping_zip',__('lbl.zip'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_zip', $estashippingaddress['zip'], ["class"=>"form-control","placeholder"=>__('lbl.state'),"id"=>"shipping_zip"]) }}
@else
Please update first establishment shipping address. Click here to update.
@endif
{{ __('lbl.ordered') }}
{{ __('lbl.action') }} {{ __('lbl.product_name') }} {{ __('lbl.product_sku_barcode') }} {{ __('lbl.vendor_item_id') }} {{ __('lbl.taxed') }} {{ __('lbl.reorder_unit_type') }} {{ __('lbl.tax_rate') }} {{ __('lbl.qty') }} {{ __('lbl.cost') }} {{ __('lbl.total') }}
{{__('lbl.vendor_product_filer')}}
@if(Helper::checkAccess('purchase_order_add_new_product'))
@endif
{!!Form::select('purchase_order_fob', config('constants.fob'), '', ['id'=>'purchase_order_fob','name'=>'purchase_order_fob','class' => 'select-form-control', 'style'=>'height: 25px;border-radius: 5px; padding: 0 5px;'])!!}
@if($storeinfo)
@endif
{{ Form::hidden('totalItems','0',['id'=>'totalItems','name'=>'totalItems']) }} {{ Form::hidden('userId',Session::get('userid'),['id'=>'userId','name'=>'userId']) }} {{ Form::hidden('vendorId',$vendor['id'],['id'=>'vendorId','name'=>'vendorId']) }} {{ Form::hidden('vendorInvoiceId',$vendorInvoiceId,['id'=>'vendorInvoiceId','name'=>'vendorInvoiceId']) }} {{ Form::close() }} {{ Form::hidden('isAutoGenerateBarcode', (Helper::widgetAccess('auto_generate_barcode'))?true:false,['id'=>'isAutoGenerateBarcode']) }} {{ Form::hidden('isAutoGenerateSku', (Helper::widgetAccess('auto_generate_sku'))?true:false, ['id'=>'isAutoGenerateSku']) }} {{ Form::hidden('shorturl',route('subcategories'),['id'=>'shorturl']) }} {{ Form::hidden('stockunitsdrop',route('productstockunitsdrop'),['id'=>'stockunitsdrop'])}} {{ Form::hidden('route_auto_generate',route('autoGenerateSku'),['id'=>'route_auto_generate']) }} {{ Form::hidden('route_barcode',route('productBarcode'),['id'=>'route_barcode']) }} {{ Form::hidden('catId','',['id'=>'catId']) }} {{ Form::hidden('subCatId','',['id'=>'subCatId']) }} {{ Form::hidden('product_id','',['id'=>'product_id']) }}
@endsection @section('pagescript') {!!Helper::pagejs([ 'js/lib/select2/dist/js/select2.full.min.js', 'js/lib/tags/bootstrap-tagsinput.min.js', 'js/backend/purchaseorder/purchaseorder.js', 'js/backend/producttab/quickproductadd.js' ])!!} @stop