@extends('powerpanel.layouts.app') @section('title') {{ Config::get('Constant.SITE_NAME') }} - Admin Panel @endsection @section('content') @php $settings = json_decode(Config::get("Constant.MODULE.SETTINGS")); @endphp
@if(Session::has('message'))
{{ Session::get('message') }}
@endif
{!! Form::open(['method' => 'post', 'id' => 'frmContactUS']) !!}
{{-- Name --}}
{!! Form::text('name', isset($contactInfo->varTitle) ? $contactInfo->varTitle : old('name'), ['class' => 'form-control input-sm maxlength-handler', 'maxlength' => '150', 'id' => 'name', 'autocomplete' => 'off']) !!} {{ $errors->first('name') }}
{{-- Email --}}
{!! Form::text('email', isset($contactInfo->varEmail) ? $contactInfo->varEmail : old('email'), ['class' => 'form-control input-sm', 'maxlength' => '100', 'id' => 'email', 'autocomplete' => 'off']) !!} {{ $errors->first('email') }}
{{-- Phone No --}}
{!! Form::text('phone_no', isset($contactInfo->varPhoneNo) ? $contactInfo->varPhoneNo : old('phone_no'), ['class' => 'form-control input-sm', 'id' => 'phone_no', 'autocomplete' => 'off']) !!} {{ $errors->first('phone_no') }}
{{-- FAX --}}
{!! Form::text('fax', isset($contactInfo->varFax) ? $contactInfo->varFax : old('fax'), ['class' => 'form-control input-sm', 'id' => 'fax', 'autocomplete' => 'off', 'maxlength' => '20', 'onpaste' => 'return false']) !!} {{ $errors->first('fax') }}
{{-- Find a broker / agent --}}
{!! Form::text('find_broker_agent', isset($contactInfo->varFindBrokerAgent) ? $contactInfo->varFindBrokerAgent : old('find_broker_agent'), ['class' => 'form-control input-sm', 'maxlength' => '100', 'id' => 'find_broker_agent', 'autocomplete' => 'off']) !!} {{ $errors->first('find_broker_agent') }}
{{-- Description --}} {{-- Address --}}
{!! Form::textarea('address', isset($contactInfo->txtAddress) ? $contactInfo->txtAddress : old('address'), ['class' => 'form-control', 'maxlength' => '250', 'id' => 'address', 'style' => 'max-height:80px;']) !!} {{ $errors->first('address') }}
{{-- Mailing Address --}}
{{-- Contact Info --}}

{{ trans('contactinfo::template.common.primary') }} *

@if ((isset($contactInfo->chrIsPrimary) && $contactInfo->chrIsPrimary == 'Y') || (null == Request::old('primary') || Request::old('primary') == 'Y')) @php $checked_yes = 'checked' @endphp @else @php $checked_yes = '' @endphp @endif
@if ((isset($contactInfo->chrIsPrimary) && $contactInfo->chrIsPrimary == 'N') || old('primary') == 'N') @php $checked_no = 'checked' @endphp @else @php $checked_no = '' @endphp @endif
{{ $errors->first('primary') }}
{{-- Display Info --}}

Display Information

@include('powerpanel.partials.displayInfo',['display'=> isset($contactInfo->chrPublish) ? $contactInfo->chrPublish:null])
{{-- @if (isset($contactInfo))
@php $emcnt=0; $selectedEmail=unserialize($contactInfo->varEmail); @endphp @if (count($selectedEmail) > 1) @foreach ($selectedEmail as $email)
{!! Form::text('email['.($emcnt).']',$email, array('class' => 'form-control input-sm', 'placeholder'=>'Email', 'maxlength'=>'100','id' => 'email'.($emcnt),'autocomplete'=>'off')) !!} @if ($emcnt == 0) @else Remove @endif {{ $errors->first('email['.($emcnt).']') }}
@php if( $emcnt < count($selectedEmail)-1){ $emcnt++; } @endphp @endforeach @else
{!! Form::text('email['.($emcnt).']',$selectedEmail[0], array('class' => 'form-control input-sm', 'placeholder'=>'Email', 'maxlength'=>'100','id' => 'email'.($emcnt),'autocomplete'=>'off')) !!} @if ($emcnt == 0) @else Remove @endif {{ $errors->first('email['.($emcnt).']') }}
@endif
@php $phcnt=0; $selectedPhone = unserialize($contactInfo->varPhoneNo); @endphp @if (count($selectedPhone) > 1) @foreach ($selectedPhone as $key => $phone)
{!! Form::text('phone_no['.($phcnt).']',$phone, array('class' => 'form-control input-sm','id' => 'phone_no'.($phcnt),'placeholder' => 'Phone No','autocomplete'=>'off','maxlength'=>"20", 'onkeypress'=>"javascript: return KeycheckOnlyPhonenumber(event);",'onpaste'=>'return false')) !!} @if ($phcnt == 0) @else Remove @endif {{ $errors->first('phone_no') }}
@php if( $phcnt < count($selectedPhone)-1){ $phcnt++; } @endphp @endforeach @else
{!! Form::text('phone_no['.($phcnt).']',$selectedPhone[0], array('class' => 'form-control input-sm','id' => 'phone_no'.($phcnt),'placeholder' => 'Phone No','autocomplete'=>'off','maxlength'=>"20", 'onkeypress'=>"javascript: return KeycheckOnlyPhonenumber(event);",'onpaste'=>'return false')) !!} @if ($phcnt == 0) @else Remove @endif {{ $errors->first('phone_no') }}
@endif
@else
{!! Form::text('email[0]', Request::old('email'), array('class' => 'form-control input-sm email', 'maxlength'=>'100','id' => 'email0','placeholder' => 'Email','autocomplete'=>'off')) !!} {{ $errors->first('email') }}
{!! Form::text('phone_no[0]', Request::old('phone_no'), array('class' => 'form-control input-sm','id' => 'phone_no0','placeholder' => 'Phone No','autocomplete'=>'off', 'maxlength'=>"20", 'onkeypress'=>"javascript: return KeycheckOnlyPhonenumber(event);",'onpaste'=>'return false')) !!} {{ $errors->first('phone_no') }}
@endif --}} {{--
{!! Form::text('order', isset($contactInfo->intDisplayOrder)?$contactInfo->intDisplayOrder:$total, array('maxlength'=>5,'placeholder' => trans('contactinfo::template.common.order'),'class' => 'form-control','autocomplete'=>'off')) !!} {{ $errors->first('order') }}
--}}
{{ trans('contactinfo::template.common.cancel') }}
{!! Form::close() !!}
@endsection @section('scripts') @endsection