@extends('admin.layouts.main') @section('title') @if($edit) Edit Contact @else Add Contact @endif @endsection @section('content') @include("admin.common.sidebar") {{ @trans('contact.directory') }} {{ @trans('contact.contacts') }} @if($edit) {{ @trans('contact.edit_contact') }} @else {{ @trans('contact.add_contact') }} @endif @if($edit) {{ @trans('contact.edit_contact') }} @else {{ @trans('contact.add_contact') }} @endif {{ @trans('contact.company') }} * Select Company @foreach($companiesList as $key => $company) company_id == $company->id) selected ='selected' @endif @else @if($company->id == old('company_id')) selected ='selected' @endif @endif >{{$company->name}} @endforeach @if($errors->has('company_id')) {{$errors->first('company_id')}} @endif {{ @trans('contact.contact_role') }} * is_client) && $contactPersonDetail->is_client == 1) checked="checked" @endif> {{ @trans('contact.client') }} is_supplier) && $contactPersonDetail->is_supplier == 1) checked="checked" @endif> {{ @trans('contact.supplier') }} @if($errors->has('contact_type')) {{$errors->first('contact_type')}} @endif {{ @trans('contact.first_name') }} * @if($errors->has('first_name')) {{$errors->first('first_name')}} @endif {{ @trans('contact.middle_name') }} @if($errors->has('middle_name')) {{$errors->first('middle_name')}} @endif {{ @trans('contact.last_name') }} * @if($errors->has('last_name')) {{$errors->first('last_name')}} @endif {{ @trans('contact.designation') }} @if($errors->has('title')) {{$errors->first('title')}} @endif {{ @trans('contact.phone') }} #1 @if($errors->has('mobile')) {{$errors->first('mobile')}} @endif {{ @trans('contact.phone') }} #2 @if($errors->has('mobile2')) {{$errors->first('mobile2')}} @endif {{ @trans('contact.phone') }} #3 @if($errors->has('mobile3')) {{$errors->first('mobile3')}} @endif {{ @trans('contact.email') }} #1 * @if($errors->has('email')) {{$errors->first('email')}} @endif {{ @trans('contact.email') }} #2 @if($errors->has('secondary_email')) {{$errors->first('secondary_email')}} @endif {{ @trans('contact.email') }} #3 @if($errors->has('work_email')) {{$errors->first('work_email')}} @endif {{ @trans('contact.description') }} @if($edit){{$contactPersonDetail->description}}@else{{old('description')}}@endif {{ @trans('contact.cancel') }} @endsection @push('pageJs') {!! JsValidator::formRequest('App\Http\Requests\Contact\StoreContact', '#contactForm') !!} @endpush