@extends('layouts.admin') @section('page-title') {{__('Bill Create')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('content')
{{ Form::open(array('url' => 'bill','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('bill_date', __('Bill Date'),['class'=>'form-label']) }}
{{Form::date('bill_date',null,array('class'=>'form-control','required'=>'required'))}}
{{ Form::label('due_date', __('Due Date'),['class'=>'form-label']) }}
{{Form::date('due_date',null,array('class'=>'form-control','required'=>'required'))}}
{{ Form::label('bill_number', __('Bill Number'),['class'=>'form-label']) }}
{{ Form::label('category_id', __('Category'),['class'=>'form-label']) }} {{ Form::select('category_id', $category,null, array('class' => 'form-control select','required'=>'required')) }}
{{ Form::label('order_number', __('Order Number'),['class'=>'form-label']) }}
{{ Form::number('order_number', '', array('class' => 'form-control')) }}
@if(!$customFields->isEmpty())
@include('customFields.formBuilder')
@endif
{{__('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('bill.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