@extends('layouts.contentLayoutMaster') @section('title') {{$object->fullName}} @endsection @php $breadcrumbs = [ [ 'link'=>route('contacts'), 'name' =>'Contacts' ] ] @endphp @section('vendor-style') @endsection @section('page-style') @endsection @if($isSuperAdmin) @section('object-toolbar') View @endsection @section('content') @include('elements.messages-error') {!! Form::model($object, ['route' => ['contact-update', $object->id], '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'), [ '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', 'Company') !!} {!! Form::select('client_ids[]', $clients['options'], old('client_ids', $object->clients()->withTrashed()->get()), ['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', $object->suppliers()->withTrashed()->get()), ['id' => 'supplier_ids', 'class' => 'select2 form-control', 'multiple' => 'multiple'] + $validationRules['supplier_ids'], $clients['optionAttributes']) !!} Save Cancel {{ Form::close() }} @endsection @else @include('elements.noContent') @endif @section('vendor-script') @endsection @section('page-script') @endsection