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

{{ Helper::getUserCurrentStoreName() }} : {{ $title }}

{{ Form::open(['url' => route('purchaseorder.update',$podata->id), 'method'=>'PATCH', 'file'=>true, 'enctype'=>'multipart/form-data', 'name' => 'productconfigtab', 'id' => 'productconfigtab']) }}
{{ Form::text('vendor_invoice_id', !empty($podata->vendor_invoice_id) ? $podata->vendor_invoice_id : '', ["class"=>"form-control col-md-8","placeholder"=>__('lbl.Invoice_optional'),"id"=>"vendor_invoice_id","name"=>"vendor_invoice_id"]) }}
@if($podata->purchase_order_status != 'Finalized') {{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn btn-primary btn-sm ','type' => 'submit']) }} @endif {{ __('lbl.back') }}
{!! Form::file('attachment') !!}

{{ __('lbl.purchase_order') }} #{{$podata->id}} {{ __('lbl.created_date') }}: {{ \Carbon\Carbon::parse($podata->created_at)->format('M d, Y') }}

{{ $vendor['vendor_name'] }}({{$vendor['id']}})
{{ !empty($vendor['address_line_1']) ? $vendor['address_line_1']."," : 'NA,' }} {{ !empty($vendor['address_line_2']) ? $vendor['address_line_2'] : 'NA' }}
{{ !empty($vendor['city']) ? $vendor['city']."," : 'NA,' }} {{ !empty($vendor['country']) ? $vendor['country']."," : 'NA,' }} {{ !empty($vendor['zip']) ? $vendor['zip']."," : 'NA,' }}
{{ __('lbl.contact_name') }} : {{ $vendor['contact_name'] }}
{{ __('lbl.phone') }} : {{ !empty($vendor['main_number']) ? $vendor['main_number'] : 'NA' }} {{ __('lbl.fax') }} : {{ !empty($vendor['fax']) ? $vendor['fax'] : 'NA' }}
{{ __('lbl.email') }} : {{ !empty($vendor['vendor_email']) ? $vendor['vendor_email'] : 'NA' }}
{{ __('lbl.account_number') }} : {{ !empty($vendor['account_number']) ? $vendor['account_number'] : 'NA' }}
{{ Form::label('shipping_company_name',__('lbl.company_name'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_company_name', $podata->shipping_company_name, ["class"=>"form-control","placeholder"=>__('lbl.company_name'),"id"=>"shipping_company_name","name"=>"shipping_company_name"]) }}
{{ Form::label('shipping_contact_name',__('lbl.contact_name'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_contact_name', $podata->shipping_contact_name, ["class"=>"form-control","placeholder"=>__('lbl.contact_name'),"id"=>"shipping_contact_name","name"=>"shipping_contact_name"]) }}
{{ Form::label('shipping_email',__('lbl.email'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_email', $podata->shipping_email, ["class"=>"form-control","placeholder"=>__('lbl.email'),"id"=>"shipping_email","name"=>"shipping_email"]) }}
{{ Form::label('shipping_phone',__('lbl.phone'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_phone', $podata->shipping_phone, ["class"=>"form-control","placeholder"=>__('lbl.phone'),"id"=>"shipping_phone","name"=>"shipping_phone"]) }}
{{ Form::label('shipping_address_line_1',__('lbl.address_1'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_address_line_1', $podata->shipping_address_line_1, ["class"=>"form-control","placeholder"=>__('lbl.address_1'),"id"=>"shipping_address_line_1","name"=>"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', $podata->shipping_address_line_2, ["class"=>"form-control","placeholder"=>__('lbl.address_2'),"id"=>"shipping_address_line_2","name"=>"shipping_address_line_2"]) }}
{{ Form::label('shipping_city',__('lbl.city'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_city', $podata->shipping_city, ["class"=>"form-control","placeholder"=>__('lbl.city'),"id"=>"shipping_city","name"=>"shipping_city"]) }}
{{ Form::label('shipping_country',__('lbl.country'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_country', $podata->shipping_country, ["class"=>"form-control","placeholder"=>__('lbl.country'),"id"=>"shipping_country","name"=>"shipping_country"]) }}
{{ Form::label('shipping_state',__('lbl.state'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_state', $podata->shipping_state, ["class"=>"form-control","placeholder"=>__('lbl.state'),"id"=>"shipping_state","name"=>"shipping_state"]) }}
{{ Form::label('shipping_zip',__('lbl.zip'), ['class' => 'col-sm-4 control-label']) }}
{{ Form::text('shipping_zip', $podata->shipping_zip, ["class"=>"form-control","placeholder"=>__('lbl.state'),"id"=>"shipping_zip","name"=>"shipping_zip"]) }}
{{ Form::hidden('manualgeneratorsku','1',['id'=>'manualgeneratorsku']) }} {{ Form::hidden('manualgeneratorbarcode','1',['id'=>'manualgeneratorbarcode']) }} {{ Form::hidden('totalItems', count($poitems),['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('old_attachment',$podata->purchase_order_attachment,['id'=>'old_attachment','name'=>'old_attachment']) }} {{ 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('poId',$podata->id,['id'=>'poId']) }} {{ Form::hidden('existingitemdelete',route('existingitemdelete'),['id'=>'existingitemdelete']) }} {{ 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