@extends('layouts.contentLayoutMaster') @section('title') Create an Opportunity @endsection @php $breadcrumbs = [ [ 'link'=>route('opportunities'), 'name' =>'Opportunities' ] ] @endphp @section('vendor-style') @endsection @section('content') @include('elements.messages-error') {!! Form::open(['route' => ['opportunity-store'], 'method' => 'post', 'class' => 'form form-vertical', 'novalidate']) !!} @csrf

Opportunity Details

{!! Form::label('name', 'Site Address *') !!}
{!! Form::text('name', old('name'), [ 'id' => 'name', 'class' => 'form-control', ] + $validationRules['name']) !!}
{!! Form::label('description', 'Project') !!}
{!! Form::label('client_id', 'Company *') !!}
{!! Form::select('client_id', $clients['options'], old('client_id', $selectedClientId), ['id' => 'client_id', 'class' => 'select2 form-control'] + $validationRules['client_id']) !!}
{{--
{!! Form::label('is_based_on_contract', 'Is opportunity based on an existing contract? *') !!}
Yes No
--}}
{!! Form::select('contact_id', $contacts['options'], old('contact_id'), ['id' => 'contact_id', 'class' => 'select2 form-control'] + $validationRules['contact_id']) !!}
{!! Form::label('open_date', 'Open Date') !!}
{!! Form::label('estimated_close_date', 'Estimated Close Date') !!}
{!! Form::label('closed_date', 'Closed Date') !!}
{!! Form::label('total', 'Total (£)') !!}
{!! Form::text('total', old('total'), [ 'id' => 'total', 'class' => 'form-control', ] + $validationRules['total']) !!}
{!! Form::label('status', 'Status *') !!}
{!! Form::select('status', $statuses['options'], old('status', app('request')->input('status') != null ? app('request')->input('status') : 'Survey'), [ 'id' => 'status', 'class' => 'select2 form-control', ] + $validationRules['status']) !!}
{!! Form::label('reason', 'Reason') !!}
{!! Form::text('reason', old('reason'), [ 'id' => 'reason', 'class' => 'form-control', ] + $validationRules['reason']) !!}
Cancel
{{ Form::close() }} @endsection @section('page-script') @include('panels.dropDownPickersScripts') @endsection