@extends('layouts.main') @section('page-title') {{ __('Create Proposal') }} @endsection @section('page-breadcrumb') {{ __('Proposal') }} @endsection @php $type = request()->query('type'); $projectsid = request()->query('project_id'); @endphp @push('scripts') @if (module_is_active('Account') || module_is_active('CMMS')) @endif @if (module_is_active('Taskly')) @endif @if (module_is_active('Account')) @elseif (module_is_active('Taskly')) @elseif (module_is_active('CMMS')) @endif @endpush @section('content')
{{ Form::open(['url' => 'proposal', 'class' => 'w-100', 'enctype' => 'multipart/form-data', 'class' => 'needs-validation', 'novalidate']) }} @if (module_is_active('Account')) @elseif (module_is_active('Taskly')) @elseif (module_is_active('CMMS')) @endif
{{ Form::label('customer_id', __('Customer/Client'), ['class' => 'form-label']) }} {{ Form::select('customer_id', $customers, $customerId, ['class' => 'form-control', 'id' => 'customer', 'data-url' => route('proposal.customer'), 'required' => 'required', 'placeholder' => 'Please Select']) }} @if (empty($customers->count()))
{{ __('Please create Customer/Client first.') }}{{ __('Create Customer/Client') }}
@endif
{{ $errors->first('billing_type') }}
{{ Form::label('issue_date', __('Issue Date'), ['class' => 'form-label']) }}
{{ Form::date('issue_date', date('Y-m-d'), ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Select Date']) }}
{{ Form::label('proposal_number', __('Proposal 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']) }} @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']) }} @elseif (module_is_active('CMMS')) {{ Form::label('work_order', __('Work Orders'), ['class' => 'form-label']) }} {{ Form::select('work_order', $work_order, null, ['class' => 'form-control ', 'required' => 'required']) }} @endif
@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('Account')) @endif @if (module_is_active('CustomField') && !$customFields->isEmpty())
@include('custom-field::formBuilder')
@endif
{{ Form::close() }}
@endsection @push('scripts') {{-- Load Billing types based on Account type --}} @endpush