@extends('layouts.admin') @section('page-title') {{__('Purchase Edit')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('content')
{{ Form::model($purchase, array('route' => array('purchase.update', $purchase->id), 'method' => 'PUT','class'=>'w-100')) }}
{{ Form::label('vender_id', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vender_id', $venders,null, array('class' => 'form-control select','id'=>'vender','data-url'=>route('purchase.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']) }}
discount_apply==1?'checked':''}}>
{{__('Product & Services')}}
{{ Form::hidden('id',null, array('class' => 'form-control id')) }}
{{__('Items')}} {{__('Quantity')}} {{__('Price')}} {{__('Tax')}} (%) {{__('Discount')}} {{__('Amount')}}
{{__('before tax & discount')}}
{{ Form::select('item', $product_services,null, array('class' => 'form-control select item','data-url'=>route('purchase.product'))) }}
{{ Form::text('quantity',null, array('class' => 'form-control quantity','required'=>'required','placeholder'=>__('Qty'),'required'=>'required')) }}
{{ Form::text('price',null, 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',null, array('class' => 'form-control discount','required'=>'required','placeholder'=>__('Discount'))) }} {{\Auth::user()->currencySymbol()}}
0.00 @can('delete proposal product') @endcan
{{ 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()}}) 0.00
{{ Form::close() }}
@endsection