@extends('page') @section('content')

New Order

@if (count($errors) > 0)
Whoops! There were some problems with your input.

@endif
@if($message = Session::get('success'))
@endif {!! Form::open(array('route' => 'placeorder','method'=>'POST', 'files'=> true, 'id' => 'product_form')) !!}
@php $x = 1; @endphp @if(Session::has('order_details')) @foreach(Session::get('order_details')['product_details'] as $t_products)
@php $x++; @endphp @endforeach @endif
{!! Form::text('product_name[]', null, array('placeholder' => 'Product Name','class' => 'form-control form-control-sm product-name', 'id' => 'tags_create')) !!}
{!! Form::number('label_count[]', null, array('placeholder' => 'Label Count','class' => 'form-control form-control-sm product-label', 'id' => 'label_count', 'min'=>"1")) !!}
@php $temp_verifier = []; @endphp @foreach($verifiers as $id => $verifier) @php $temp_verifier[$verifier->id] = $verifier->name @endphp @endforeach {!! Form::select('verifier', $temp_verifier, (Session::has('order_details')? Session::get('order_details')['verifier_id']: null),array('class' => 'form-control form-control-sm')) !!}
@php $temp_approver = []; @endphp @foreach($approvers as $id => $approver) @php $temp_approver[$approver->id] = $approver->name @endphp @endforeach {!! Form::select('approver', $temp_approver,(Session::has('order_details')? Session::get('order_details')['approver_id']: null),array('class' => 'form-control form-control-sm')) !!}
{!! Form::textarea('order_note', (Session::has('order_details')? Session::get('order_details')['order_note']: null), array('placeholder' => 'Order Note','class' => 'form-control form-control-sm', 'id' => 'tags_create', 'rows' => '2')) !!}
{!! Form::close() !!}
@include('components.dashboard.vertical')
@endsection