dbfdg @extends('layouts.admin') @section('page-title') {{__('Expense Edit')}} @endsection @section('breadcrumb') @endsection @push('script-page') {{-- start for user select--}} {{-- end for user select--}} @endpush @section('content')
{{ Form::model($expense, array('route' => array('expense.update', $expense->id), 'method' => 'PUT','class'=>'w-100')) }}
user_type == 'employee' ? 'checked' : '' }}>
user_type == 'customer' ? 'checked' : '' }} >
user_type == 'vendor' ? 'checked' : '' }}>
{{ Form::label('employee_id', __('Payee'),['class'=>'form-label']) }} {{ Form::select('employee_id', $employees,$expense->vender_id, array('class' => 'form-control select','id'=>'employee','data-url'=>route('expense.employee'))) }}
{{ Form::label('customer_id', __('Payee'),['class'=>'form-label']) }} {{ Form::select('customer_id', $customers,$expense->vender_id, array('class' => 'form-control select','id'=>'customer','data-url'=>route('expense.customer'))) }}
{{ Form::label('vender_id', __('Payee'),['class'=>'form-label']) }} {{ Form::select('vender_id', $venders,$expense->vender_id, array('class' => 'form-control select','id'=>'vender','data-url'=>route('expense.vender'))) }}
{{ Form::label('bill_date', __('Payment Date'),['class'=>'form-label']) }} {{Form::date('bill_date',null,array('class'=>'form-control','required'=>'required'))}}
{{ Form::label('category_id', __('Category'),['class'=>'form-label']) }} {{ Form::select('category_id', $category,null, array('class' => 'form-control select')) }}
{{ Form::label('account_id', __('Account'),['class'=>'form-label']) }}
{{ Form::label('bill_number', __('Expense Number'),['class'=>'form-label']) }}
{{__('Product & Services')}}
{{ Form::hidden('id',null, array('class' => 'form-control id')) }} {{ Form::hidden('account_id',null, array('class' => 'form-control account_id')) }} {{ Form::hidden('totalAmount',null, array('class' => 'form-control totalAmount')) }}
{{__('Items')}} {{__('Quantity')}} {{__('Price')}} {{__('Discount')}} {{__('Tax')}} (%) {{__('Amount')}}
{{__('after tax & discount')}}
{{ Form::select('items', $product_services,null, array('class' => 'form-control select item','data-url'=>route('expense.product'))) }}
{{ Form::text('quantity',null, array('class' => 'form-control quantity','placeholder'=>__('Qty'))) }}
{{ Form::text('price',null, array('class' => 'form-control price','placeholder'=>__('Price'))) }} {{\Auth::user()->currencySymbol()}}
{{ Form::text('discount',null, array('class' => 'form-control discount','placeholder'=>__('Discount'))) }} {{\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')) }}
0.00 @can('delete bill product') @endcan
{{-- {{ Form::select('chart_account_id', $chartAccounts,null, array('class' => 'form-control select js-searchBox')) }} --}}
{{ Form::text('amount',null, array('class' => 'form-control accountAmount','placeholder'=>__('Amount'))) }} {{\Auth::user()->currencySymbol()}}
{{ Form::textarea('description', null, ['class'=>'form-control pro_description','rows'=>'1','placeholder'=>__('Description')]) }} 0.00
      {{__('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