@extends('layouts.admin') @section('page-title') {{__('Purchase Create')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('content')
{{ Form::open(array('url' => 'purchase','class'=>'w-100')) }}
{{ Form::label('vender_id', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vender_id', $venders,$vendorId, array('class' => 'form-control select','id'=>'vender','data-url'=>route('bill.vender'),'required'=>'required')) }}
{{ 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',null,array('class'=>'form-control','required'=>'required'))}}
{{ Form::label('purchase_number', __('Purchase Number'),['class'=>'form-label']) }}
{{__('Product & Services')}}
{{__('Items')}} {{__('Quantity')}} {{__('Price')}} {{__('Tax')}} (%) {{__('Discount')}} {{__('Amount')}}
{{__('before tax & discount')}}
{{ Form::select('item', $product_services,'', array('class' => 'form-control select2 item','data-url'=>route('purchase.product'),'required'=>'required')) }}
{{ 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')) }} {{\Auth::user()->currencySymbol()}}
{{ 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'))) }} {{\Auth::user()->currencySymbol()}}
0.00
{{ Form::textarea('description', null, ['class'=>'form-control','rows'=>'2','placeholder'=>__('Description')]) }}
      {{__('Sub Total')}} ({{\Auth::user()->currencySymbol()}}) 0.00
      {{__('Discount')}} ({{\Auth::user()->currencySymbol()}}) 0.00
      {{__('Tax')}} ({{\Auth::user()->currencySymbol()}}) 0.00
        {{__('Total Amount')}} ({{\Auth::user()->currencySymbol()}})
{{ Form::close() }} @endsection