@extends('layouts.contentLayoutMaster') @section('title') Create a Contact @endsection @php $breadcrumbs = [ [ 'link'=>route('contacts'), 'name' =>'Contacts' ] ] @endphp @section('vendor-style') @endsection @if($isSuperAdmin) @section('content') @include('elements.messages-error') {!! Form::open(['route' => ['contact-store'], 'method' => 'post', 'class' => 'form form-vertical', 'novalidate']) !!} @csrf

Contact Details

{!! Form::label('title_id', 'Title') !!}
{!! Form::select('title_id', $titles['options'], old('title_id'), ['id' => 'title_id', 'class' => 'select2 form-control'] + $validationRules['title_id'], $titles['optionAttributes']) !!}
{!! Form::label('first_name', 'First Name *') !!}
{!! Form::text('first_name', old('first_name'), [ 'id' => 'first_name', 'class' => 'form-control', ] + $validationRules['first_name']) !!}
{!! Form::label('last_name', 'Last Name *') !!}
{!! Form::text('last_name', old('last_name'), [ 'id' => 'last_name', 'class' => 'form-control', ] + $validationRules['last_name']) !!}
{!! Form::label('email', 'Email') !!}
{!! Form::text('email', old('email'), [ 'id' => 'email', 'class' => 'form-control', ] + $validationRules['email']) !!}
{!! Form::label('telephone', 'Telephone') !!}
{!! Form::text('telephone', old('telephone', $telephone), [ 'id' => 'telephone', 'class' => 'form-control', ] + $validationRules['telephone']) !!}
{!! Form::label('extension', 'Extension') !!}
{!! Form::text('extension', old('extension'), [ 'id' => 'extension', 'class' => 'form-control', ] + $validationRules['extension']) !!}
{!! Form::label('mobile', 'Mobile') !!}
{!! Form::text('mobile', old('mobile'), [ 'id' => 'mobile', 'class' => 'form-control', ] + $validationRules['mobile']) !!}
{!! Form::label('ddi', 'DDI') !!}
{!! Form::text('ddi', old('ddi'), [ 'id' => 'ddi', 'class' => 'form-control', ] + $validationRules['ddi']) !!}
{!! Form::label('department', 'Department') !!}
{!! Form::text('department', old('department'), [ 'id' => 'department', 'class' => 'form-control', ] + $validationRules['department']) !!}
{!! Form::label('job_title', 'Job Title') !!}
{!! Form::text('job_title', old('job_title'), [ 'id' => 'job_title', 'class' => 'form-control', ] + $validationRules['job_title']) !!}
{!! Form::label('client_ids', 'Companies') !!}
{!! Form::select('client_ids[]', $clients['options'], old('client_ids', [$selectedClientId]), ['id' => 'client_ids', 'class' => 'select2 form-control', 'multiple' => 'multiple'] + $validationRules['client_ids'], $clients['optionAttributes']) !!}
{!! Form::label('supplier_ids', 'Suppliers') !!}
{!! Form::select('supplier_ids[]', $suppliers['options'], old('supplier_ids', [$selectedSupplierId]), ['id' => 'supplier_ids', 'class' => 'select2 form-control', 'multiple' => 'multiple'] + $validationRules['supplier_ids'], $suppliers['optionAttributes']) !!}
Cancel
{{ Form::close() }} @endsection @else @include('elements.noContent') @endif @section('page-script') @include('panels.dropDownPickersScripts') @endsection