@extends("layouts.master") @section('content') @if(!empty(@$data)) {!! Form::model(@$data, ['method' => 'PATCH','route' => ['opportunities.update', @$data->id],'class'=>'form-submit']) !!} @else {!! Form::open(['route' => 'opportunities.save_create_new_for_exsting_customer', 'method' => 'POST','class'=>'form-submit']) !!} @endif @section("button_submit")
@if(!empty(@$data)&&@$data->close_status==2) id)."?view_status=form_edit" }}">{{ __('application.restore') }} @elseif(!empty(@$data)) @if(@$data->close_status!=1) id)."?view_status=form_edit" }}">{{ __('application.close-won') }} @endif id)."?view_status=form_edit" }}">{{ __('application.close-lost') }} @else @endif @if(@$data->close_status==2) {{ __('application.Discard') }} @else {{ __('application.Discard') }} @endif
@endsection
{{--
--}}
@if(!empty(@$data))

{{ __('application.Edit') }} {{ __('application.opportunities') }}

@else

{{ __('application.Create') }} {{ __('application.opportunities') }}

@endif
{{--
--}}
@if(@$data->close_status==2)
LOST
@elseif(@$data->close_status==1)
WON
@else @endif
{{ __('application.Name') }}: {!! Form::text('name',null, ['placeholder' => 'e.g. Product Pricing', 'class' => 'form-control','required']) !!}
{{ __('application.stage') }}: {!! Form::select('stage_id',getStage(),@$data->stage_id, ['class' => 'form-control select2','required']) !!}
{{ __('application.expected_revenue') }}:
{!! Form::text('expected_revenue',null, ['placeholder' => __('application.Number'), 'class' => 'form-control number-only']) !!}
{{ __('application.probability') }}:
{!! Form::text('probability',null, ['placeholder' => __('application.Number'), 'class' => 'form-control number-only']) !!}
{{ __('application.sale_person') }}: {!! Form::select('saleperson_id',getSalemember(),!empty($data->saleperson_id)?@$data->saleperson_id:auth()->user()->id, ['placeholder' => __('application.Please Select'), 'class' => 'form-control select2']) !!}
{{ __('application.expected_closing') }}: {{-- --}} {!! Form::text('date_expected_closing',!empty(@$data->date_expected_closing)?date("d-m-Y",strtotime(@$data->date_expected_closing)):null, ['placeholder' => __('application.Date'), 'class' => 'form-control date_picker']) !!}
{{ __('application.priority') }}: {!! Form::select('priority',getPriority(),!empty(@$data->priority)?@$data->priority:1, ['placeholder' => __('application.Please Select'), 'class' => 'form-control select2']) !!}
{{ __('application.tags') }}: {!! Form::select('tag_id[]',getTags(),!empty(@$data->getPipelineTabes)?@$data->getPipelineTabes->pluck("tags_id")->toArray():null, ['class' => 'form-control select2','multiple']) !!}
{{ __('application.customers') }}: {!! Form::select('customer_id',getCustomersCrm(),!empty(@$data->customer_id)?@$data->customer_id:null, ['placeholder' => __('application.Please Select'), 'class' => 'form-control select2']) !!}

{{-- Internal Note --}}
{!! Form::textarea('internal_notes',null, ['placeholder' => __('application.Note'), 'class' => 'form-control','rows'=>'5']) !!}
{{-- marketing --}}
{{__("application.contact_by")}} :
{!! Form::select('contact_by_id',getMarketing(),null, array('placeholder' => __("application.Please Select"),'class' => 'form-control select2')) !!}
{{__("application.source")}}:
{!! Form::select('source_id',getMarketing(),null, array('placeholder' => __("application.Please Select"),'class' => 'form-control select2')) !!}
{{ __('application.known_product_by') }}:
{!! Form::textarea('know_product_by',null, ['placeholder' => __('application.Remark'), 'class' => 'form-control','rows'=>'3']) !!}
{!! Form::close() !!} @endsection {{-- include('stock.purchase.js') --}} @section('js') @stop