@extends('layouts.main') @section('page-title') {{__('Purchase Create')}} @endsection @section('page-breadcrumb') {{__('Purchase')}}, {{__('Purchase Create')}} @endsection @push('scripts') @endpush @section('content')
{{ Form::open(array('url' => 'purchase', 'enctype'=>'multipart/form-data','class'=>'w-100')) }}
@if(module_is_active('Account'))
{{ Form::label('vender_id', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vender_id', $venders,$vendorId, array('class' => 'form-control select','id'=>'vender','data-url'=>route('purchase.vender'),'required'=>'required')) }} @if (empty($venders->count()))
{{ __('Please create Customer/Client first.') }}{{ __('Create Customer/Client') }}
@endif
@else
{{ Form::label('vender_name', __('Vendor'),['class'=>'form-label']) }} {{ Form::text('vender_name',null, array('class' => 'form-control ','placeholder'=>'Enter vender name','required'=>'required')) }}
@endif
{{ Form::label('warehouse_id', __('Warehouse'),['class'=>'form-label']) }} {{ Form::select('warehouse_id', $warehouse,null, array('class' => 'form-control select','required'=>'required')) }}
{{ Form::label('category_id', __('Category'),['class'=>'form-label']) }} {{ Form::select('category_id', $category,null, array('class' => 'form-control select','required'=>'required')) }}
{{ Form::label('purchase_date', __('Purchase Date'),['class'=>'form-label']) }} {{Form::date('purchase_date',date('Y-m-d'),array('class'=>'form-control ','required'=>'required'))}}
{{ Form::label('purchase_number', __('Purchase Number'),['class'=>'form-label']) }}
@if(module_is_active('CustomField') && !$customFields->isEmpty())
@include('customfield::formBuilder')
@endif
{{__('Items')}}
{{ __('Item Type') }} {{__('Items')}} {{__('Quantity')}} {{__('Price')}} {{__('Tax')}} (%) {{__('Discount')}} {{__('Amount')}}
{{__('After discount & tax')}}
{{ Form::select('product_type', $product_type, null, ['class' => 'form-control product_type ', 'required' => 'required', 'placeholder' => '--']) }}
{{ Form::text('quantity','', array('class' => 'form-control quantity','required'=>'required','placeholder'=>__('Qty'),'required'=>'required')) }}
{{ Form::text('price','', array('class' => 'form-control price','required'=>'required','placeholder'=>__('Price'),'required'=>'required')) }} {{company_setting('defult_currancy_symbol')}}
{{ Form::hidden('tax','', array('class' => 'form-control tax')) }} {{ Form::hidden('itemTaxPrice','', array('class' => 'form-control itemTaxPrice')) }} {{ Form::hidden('itemTaxRate','', array('class' => 'form-control itemTaxRate')) }}
{{ Form::text('discount','', array('class' => 'form-control discount','required'=>'required','placeholder'=>__('Discount'))) }} {{company_setting('defult_currancy_symbol')}}
0.00
{{ Form::textarea('description', null, ['class'=>'form-control pro_description','rows'=>'2','placeholder'=>__('Description')]) }}
        {{__('Sub Total')}} ({{company_setting('defult_currancy_symbol')}}) 0.00
        {{__('Discount')}} ({{company_setting('defult_currancy_symbol')}}) 0.00
        {{__('Tax')}} ({{company_setting('defult_currancy_symbol')}}) 0.00
          {{__('Total Amount')}} ({{company_setting('defult_currancy_symbol')}})
{{ Form::close() }}
@endsection