@extends('layouts.main') @section('page-title') {{ __('Edit Bill') }} @endsection @section('page-breadcrumb') {{ __('Bill') }} @endsection @push('scripts') @if (module_is_active('Taskly') ) @endif @if ($bill->bill_module =='account') @elseif (module_is_active('Taskly') && $bill->bill_module =='taskly') @endif @endpush @section('content')
{{ Form::model($bill, array('route' => array('bill.update', $bill->id), 'method' => 'PUT','class'=>'w-100 needs-validation', 'novalidate', 'enctype' => 'multipart/form-data')) }} @if ( $bill->bill_module =='account') @elseif ( $bill->bill_module =='taskly' ) @endif
@if (module_is_active('Account'))
{{ Form::label('vendor_id', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vendor_id', $vendors, null, array('class' => 'form-control ','id'=>'vendor','data-url'=>route('bill.vendor'),'required'=>'required','placeholder' =>'Select vendor')) }} @if (empty($vendors->count()))
{{ __('Please create vendor/Client first.') }} {{ __('Create vendor/Client') }}
@endif
@else
{{ Form::label('vendor_id', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vendor_id', $vendors, null, array('class' => 'form-control ','id'=>'vendor','data-url'=>route('bill.vendor'),'required'=>'required','placeholder' =>'Select vendor')) }}
@endif
@if(module_is_active('Account') && module_is_active('Taskly'))
{{ $errors->first('billing_type') }}
@endif
{{ Form::label('bill_date', __('Bill Date'),['class'=>'form-label']) }}
{{Form::date('bill_date',null,array('class'=>'form-control ','required'=>'required','placeholder'=>'Select vendor'))}}
{{ Form::label('due_date', __('Due Date'),['class'=>'form-label']) }}
{{Form::date('due_date',null,array('class'=>'form-control ','required'=>'required','placeholder'=>'Select vendor'))}}
{{ Form::label('bill_number', __('bill Number'),['class'=>'form-label']) }}
@if ($bill->account_type == 'Accounting') {{ Form::label('category_id', __('Category'),['class'=>'form-label']) }} {{ Form::select('category_id', $category,null, array('class' => 'form-control','required'=>'required','placeholder'=>'Select Category')) }} @endif @if (module_is_active('Taskly') && $bill->account_type == 'Projects') {{ Form::label('project', __('Project'),['class'=>'form-label']) }} {{ Form::select('project',$projects,$bill->category_id, array('class' => 'form-control','required'=>'required')) }} @endif
{{ Form::label('order_number', __('Order Number'),['class'=>'form-label']) }}
{{ Form::number('order_number',null, array('class' => 'form-control')) }}
@if (module_is_active('Taskly'))
{{ Form::label('tax_project', __('Tax'),['class'=>'form-label']) }} {{ Form::select('tax_project[]',$taxs,!empty($bill->items->first()->tax) ? explode(",",$bill->items->first()->tax) :null, array('class' => 'form-control get_tax multi-select choices','multiple'=>'multiple','id' => 'tax_project','placeholder' => 'Select Tax')) }}
@endif @if(module_is_active('CustomField') && !$customFields->isEmpty())
@include('custom-field::formBuilder',['fildedata' => !empty($bill->customField) ? $bill->customField : ''])
@endif @stack('recurring_div_edit')
{{ Form::close() }}
@endsection @push('scripts') @endpush