@extends('layouts.contentLayoutMaster') @section('title') Create an Materials Request @endsection @php $breadcrumbs = [ [ 'link'=>route('orders'), 'name' =>'Orders' ] ] @endphp @section('vendor-style') @endsection @section('content') @include('elements.messages-error') {!! Form::open(['route' => ['order-store'], 'method' => 'post', 'class' => 'form form-vertical', 'novalidate']) !!} {!! Form::hidden('purchaseOrderId', old('purchaseOrderId', $purchaseOrderId), ['id' => 'purchaseOrderId']) !!} {!! Form::hidden('opportunityId', old('opportunityId', $opportunityId), ['id' => 'opportunityId']) !!} {!! Form::hidden('inventoryListData', old('inventoryListData', json_encode($object->inventoryListData)), ['id' => 'inventoryListData']) !!} @csrf

Order Details

@php $opp = App\Models\Opportunity::find($opportunityId); $po = App\Models\CustomerPurchaseOrder::find($purchaseOrderId); if($po) { $opp = $po->opportunity; } @endphp
Associated Quotes
@if ($opp && $opp->quotes->count() > 0) @foreach ($opp->quotes as $quote) {{$quote->name}} @if ($quote->version_number > 1) v.{{$quote->version_number}} @endif @endforeach @else No records @endif
{!! Form::label('order_number', 'Order Number: ') !!} {!! Form::hidden('order_number', old('order_number', $orderNumber), ['id' => 'order_number']) !!} {{ $orderNumber }}
{!! Form::label('supplier_id', 'Supplier') !!}
{!! Form::select('supplier_id', $suppliers['options'], old('supplier_id'), ['id' => 'supplier_id', 'class' => 'select2 form-control'] + $validationRules['supplier_id']) !!}
{!! Form::label('client_id', 'Company') !!}
{!! Form::select('client_id', $clients['options'], old('client_id', $selectedClientId), ['id' => 'client_id', 'class' => 'select2 form-control'] + $validationRules['client_id']) !!}
{!! Form::label('order_date', 'Order Date *') !!}
{!! Form::label('order_by', 'Ordered By *') !!}
{!! Form::select('order_by', $users['options'], old('order_by', \Auth::user() ? Auth::user()->id : null), ['id' => 'order_by', 'class' => 'select2 form-control'] + $validationRules['order_by']) !!}
{!! Form::label('requested_by', 'Requested By *') !!}
{!! Form::select('requested_by', $users['options'], old('requested_by'), ['id' => 'requested_by', 'class' => 'select2 form-control'] + $validationRules['requested_by']) !!}
{!! Form::label('details', 'Details') !!}
{!! Form::label('status', 'Type') !!}
{!! Form::select('status', $statuses['options'], old('status'), ['id' => 'status', 'class' => 'select2 form-control'] + $validationRules['status']) !!}
{!! Form::label('estimated_delivery_date', 'Estimated Delivery Date') !!}
{!! Form::label('date_received', 'Date Received') !!}
{!! Form::label('credit_note_received', 'Credit Note Received') !!}
{!! Form::text('credit_note_received', old('credit_note_received'), [ 'id' => 'credit_note_received', 'class' => 'form-control', ] + $validationRules['credit_note_received']) !!}
Cancel
{{ Form::close() }} @include("pdfTemplates.preview", ['title' => 'Quote']) @endsection @section('page-script') @include('panels.dropDownPickersScripts') @endsection