@extends('layouts.app')
@section('title', __('Add Order'))
@section('content')
@include('layouts.partials.error')
{!! Form::open(['url' => action('OrderController@store'), 'method' => 'post', 'id' => 'add_purchase_form', 'files' => true ]) !!}
{!! Form::label('ref_no', __('purchase.ref_no').':') !!}
{!! Form::text('ref_no', null, ['class' => 'form-control']); !!}
@if(count($business_locations) == 1)
@php
$default_location = current(array_keys($business_locations->toArray()))
@endphp
@else
@php $default_location = null; @endphp
@endif
{!! Form::label('location_id', __('purchase.business_location').':*') !!}
@show_tooltip(__('tooltip.purchase_location'))
{!! Form::select('location_id', $business_locations, $default_location, ['class' => 'form-control select2', 'id' => 'purchase_location_id', 'placeholder' => __('messages.please_select'), 'required']); !!}
@if (in_array('warehouse.warehouse', $package_modules))
@if (in_array('warehouse', $nature_of_business_modules))
@if(count($warehouses) > 0)
{!! Form::label('warehouse_id', __('purchase.business_warehouses').':') !!}
{!! Form::select('warehouse_id', array(), null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'id' => 'purchase_warehouses_id']); !!}
@endif
@endif
@endif
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
# |
@lang( 'product.product_name' ) |
@lang( 'purchase.purchase_quantity' ) |
|
{!! Form::hidden('exit_serial', null, ['id' => 'exit_serial']); !!}
{!! Form::hidden('exit_product_id', null, ['id' => 'exit_product_id']); !!}
{!! Form::label('shipping_details', __( 'purchase.shipping_details' ) . ':') !!}
{!! Form::text('shipping_details', null, ['class' => 'form-control']); !!}
|
|
|
{!! Form::label('shipping_charges','(+) ' . __( 'purchase.additional_shipping_charges' ) . ':') !!}
{!! Form::text('shipping_charges', 0, ['class' => 'form-control input_number', 'required']); !!}
|
|
|
|
{!! Form::hidden('final_total', 0 , ['id' => 'grand_total_hidden']); !!}
|
{!! Form::label('additional_notes',__('purchase.additional_notes')) !!}
{!! Form::textarea('additional_notes', null, ['class' => 'form-control', 'rows' => 3]); !!}
|
{!! Form::close() !!}
@include('contact.create', ['quick_add' => true])
@endsection
@section('javascript')
@include('purchase.partials.keyboard_shortcuts')
@endsection