@extends('admin.layout') @section('content')

{{ trans('Add Purchase Order') }}

@php $getUserRoleData = userRoleData(); $LeadSources = explode(",",$getUserRoleData->LeadSources); @endphp
@if(session()->has('message'))

{{ trans('labels.Successlabel') }}

{{ session()->get('message') }}
@endif @if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif
{!! Form::open(array('url' => route('purchase-order.store'), 'method'=>'post', 'class' => 'form-horizontal', 'id' => 'addNewLeadSources', 'enctype'=>'multipart/form-data')) !!}
{{ trans('labels.back') }}
{!! Form::select('company_id', $result['Company_info'], '', array('class'=>'form-control company_id', 'multiple'=>'', 'id'=>'company_id', 'required'=>'required')) !!}
{!! Form::text('format_no', 'RHYSLEY/8.0/F/04', array('class'=>'form-control', 'id'=>'format_no', 'required'=>'required', 'readonly'=>'readonly')) !!}
{!! Form::text('rev_number', '', array('class'=>'form-control', 'id'=>'rev_number', 'required'=>'required')) !!}
{!! Form::text('issues_no', $issues_no, array('class'=>'form-control', 'id'=>'issues_no', 'required'=>'required', 'readonly'=>'readonly')) !!}
{!! Form::text('fqc_date', '17.04.2020', array('class'=>'form-control', 'id'=>'fqc_date', 'required'=>'required', 'readonly'=>'readonly')) !!}
{!! Form::text('date_desc', date('Y-m-d'), array('class'=>'form-control', 'id'=>'date_desc', 'readonly'=>'readonly', 'required'=>'required')) !!}
{!! Form::text('po', '', array('class'=>'form-control', 'id'=>'po', 'required'=>'required')) !!}
{!! Form::select('mask_type_id', $result['Suppliers'], '', array('class'=>'form-control mask_type_id', 'multiple'=>'', 'id'=>'mask_type_id', 'required'=>'required')) !!}
  Rate  
SN HSN Code Material Specification Unit Qty. Price GST in % GST Amount Total #
1 {!! Form::text('hsn_code[]', '', array('class'=>'form-control hsn_code', 'id'=>'hsn_code')) !!} {!! Form::text('material_specification[]', '', array('class'=>'form-control material_specification', 'id'=>'material_specification', 'required'=>'required')) !!} {!! Form::text('unit[]', '', array('class'=>'form-control unit', 'id'=>'unit', 'required'=>'required')) !!} {!! Form::text('qty[]', '', array('class'=>'form-control qty a', 'id'=>'qty', 'min'=>'0', 'required'=>'required')) !!} {!! Form::text('price[]', '', array('class'=>'form-control price a', 'id'=>'price', 'min'=>'0', 'required'=>'required')) !!} {!! Form::text('gst_percent[]', '', array('class'=>'form-control gst_percent a', 'id'=>'gst_percent', 'min'=>'0', 'required'=>'required')) !!} {!! Form::text('gst_amount[]', '', array('class'=>'form-control gst_amount a', 'id'=>'gst_amount', 'min'=>'0', 'required'=>'required', 'readonly'=>'readonly')) !!} {!! Form::text('total_amount[]', '', array('class'=>'form-control total_amount a', 'id'=>'total_amount', 'min'=>'0', 'required'=>'required', 'readonly'=>'readonly')) !!} {{-- --}}
  Grand Total {!! Form::text('grand_total', '', array('class'=>'form-control grand_total', 'id'=>'grand_total', 'min'=>'0', 'required'=>'required', 'readonly'=>'readonly')) !!}

{!! Form::textarea('instruction', $result['Company_instructions']->instructions, array('class'=>'form-control instruction', 'id'=>'instruction', 'required'=>'required', 'rows'=>'6')) !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection