@extends('layouts.main') @section('page-title') {{ __('Proposal Edit') }} @endsection @section('page-breadcrumb') {{ __('Proposal') }} @endsection @push('scripts') @if (module_is_active('Account')) @endif @if (module_is_active('Taskly') ) @endif @if (module_is_active('Account') && $proposal->proposal_module =='account') @elseif (module_is_active('Taskly') && $proposal->proposal_module =='taskly') @endif @endpush @section('content')
{{ Form::model($proposal, array('route' => array('proposal.update', $proposal->id), 'method' => 'PUT','class'=>'w-100', 'enctype' => 'multipart/form-data')) }} @if ( $proposal->proposal_module =='account') @elseif ( $proposal->proposal_module =='taskly' ) @endif
{{ Form::label('customer_id', __('Customer'),['class'=>'form-label']) }} {{ Form::select('customer_id', $customers,null, array('class' => 'form-control','id'=>'customer','data-url'=>route('proposal.customer'),'required'=>'required','placeholder'=>"Select Customer")) }}
@if(module_is_active('Account') && module_is_active('Taskly'))
{{ Form::label('type', __('Type'),['class'=>'form-label']) }}
proposal_module =='account') ? 'checked="checked"' :''}}>
proposal_module =='taskly') ? 'checked="checked"' :''}}>
@endif
{{ Form::label('issue_date', __('Issue Date'),['class'=>'form-label']) }}
{{Form::date('issue_date',null,array('class'=>'form-control','required'=>'required'))}}
@if ( module_is_active('Account')) {{ Form::label('category_id', __('Category'),['class'=>'form-label']) }} {{ Form::select('category_id', $category,null, array('class' => 'form-control ','required'=>'required')) }} @elseif (module_is_active('Taskly')) {{ Form::label('project', __('Project'),['class'=>'form-label']) }} {{ Form::select('project',$projects,$proposal->category_id, array('class' => 'form-control ','required'=>'required')) }} @endif
{{ Form::label('proposal_number', __('Proposal Number'),['class'=>'form-label']) }}
@if (module_is_active('Taskly'))
{{ Form::label('tax_project', __('Tax'),['class'=>'form-label']) }} {{ Form::select('tax_project[]',$taxs,!empty($proposal->items->first()->tax) ? explode(",",$proposal->items->first()->tax) :null, array('class' => 'form-control get_tax multi-select choices','multiple'=>'multiple','id' => 'tax_project')) }}
@endif @if(module_is_active('CustomField') && !$customFields->isEmpty())
@include('customfield::formBuilder',['fildedata' => !empty($proposal->customField) ? $proposal->customField : ''])
@endif
{{ Form::close() }}
@endsection @push('scripts') @endpush