@extends('layouts.main') @section('page-title') {{ __('Bill Create') }} @endsection @section('page-breadcrumb') {{ __('Bill Create') }} @endsection @push('scripts') @if (module_is_active('Account')) @endif @if (module_is_active('Taskly')) @endif @if (module_is_active('Account')) @elseif (module_is_active('Taskly')) @endif @endpush @section('content')
{{ Form::open(['url' => 'bill', 'class' => 'w-100', 'enctype' => 'multipart/form-data']) }} @if (module_is_active('Account')) @elseif (module_is_active('Taskly')) @endif
{{ Form::label('vendor_id', __('vendor'), ['class' => 'form-label']) }} {{ Form::select('vendor_id', $vendors, $vendorId, ['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
@if (module_is_active('Account') && module_is_active('Taskly'))
@endif
{{ Form::label('bill_date', __('Bill Date'), ['class' => 'form-label']) }}
{{ Form::date('bill_date',date('Y-m-d'), ['class' => 'form-control ', 'required' => 'required', 'placeholder' => 'Select Issue Date']) }}
{{ Form::label('due_date', __('Due Date'), ['class' => 'form-label']) }}
{{ Form::date('due_date',date('Y-m-d'), ['class' => 'form-control ', 'required' => 'required', 'placeholder' => 'Select Due Date']) }}
{{ Form::label('bill_number', __('Bill Number'), ['class' => 'form-label']) }}
@if (module_is_active('Account')) {{ Form::label('category_id', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category_id', $category, null, ['class' => 'form-control ', 'required' => 'required','placeholder'=>'Select Category']) }} @if (empty($category->count()))
{{ __('Please add constant category. ') }}{{ __('Add Category') }}
@endif @elseif (module_is_active('Taskly')) {{ Form::label('project', __('Project'), ['class' => 'form-label']) }} {{ Form::select('project', $projects, null, ['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, null, ['class' => 'form-control get_tax multi-select choices', 'data-toggle' => 'select2', 'multiple' => 'multiple', 'id' => 'tax_project', 'data-placeholder' => 'Select Tax']) }}
@endif @if(module_is_active('CustomField') && !$customFields->isEmpty())
@include('customfield::formBuilder')
@endif
{{ Form::close() }}
@endsection @push('scripts') @endpush