75 lines
3.6 KiB
PHP
75 lines
3.6 KiB
PHP
@extends('layouts.master')
|
|
@section('pageTitle', __('Add Contact'))
|
|
@section('content')
|
|
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">{{ __('Manage Contacts') }}</h1>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }}</a></li>
|
|
<li class="breadcrumb-item active">{{ __('Add Contact') }}</li>
|
|
</ol>
|
|
<div class="page-header-actions">
|
|
<a class="btn btn-dark" href="{{ route('contact-list') }}">
|
|
<i class="icon wb-arrow-left" aria-hidden="true"></i>
|
|
<span class="hidden-sm-down">{{ __('Back To Listing') }}</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("#add-form").validationEngine();
|
|
});
|
|
</script>
|
|
<div class="page-content container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="user-background card card-shadow">
|
|
<div class="card-header card-header-transparent p-20">
|
|
<h4 class="card-title mb-0">{{ __('Add Contact') }}</h4>
|
|
</div>
|
|
<div class="card-block">
|
|
@if($errors->any())
|
|
<div class="alert alert-danger">
|
|
@foreach($errors->all() as $error)
|
|
<p>{{ $error }}</p>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
<form method="post" action="{{ route('store-contact-list') }}" id="add-form" autocomplete="off" enctype="multipart/form-data">
|
|
@csrf
|
|
<div class="row">
|
|
<div class="form-group col-md-6">
|
|
<label class="form-control-label" for="organization_name">{{ __('Name Of The Organization') }}</label>
|
|
<input type="text" class="form-control validate[required]" id="organization_name" name="organization_name" placeholder="{{ __('Name Of The Organization') }}" autocomplete="off" tabindex = "1" value="{{ old('organization_name') ? old('organization_name') : '' }}"/>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="form-control-label" for="alternative_name">{{ __('Alternative Name') }}</label>
|
|
<input type="text" class="form-control" id="alternative_name" name="alternative_name" placeholder="{{ __('Alternative Name') }}" autocomplete="off" tabindex = "2" value="{{ old('alternative_name') ? old('alternative_name') : '' }}"/>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="form-control-label" for="address">{{ __('Address') }}</label>
|
|
<textarea rows="3" class="form-control validate[required]" id="address" name="address" placeholder="{{ __('Address') }}" autocomplete="off" tabindex = "3">{{ old('address') ? old('address') : '' }}</textarea>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="form-control-label" for="notes">{{ __('Notes') }}</label>
|
|
<textarea rows="3" class="form-control" id="notes" name="notes" placeholder="{{ __('Notes') }}" autocomplete="off" tabindex = "4">{{ old('notes') ? old('notes') : '' }}</textarea>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="form-control-label" for="telephone_number">{{ __('Telephone Number') }}</label>
|
|
<input type="text" class="form-control validate[required,custom[phone]]" id="telephone_number" name="telephone_number" placeholder="Telephone Number" autocomplete="off" tabindex = "5" value="{{ old('telephone_number') ? old('telephone_number') : '' }}"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" tabindex = "6" class="btn btn-success"><i class="icon wb-check" aria-hidden="true"></i> {{ __('SAVE') }}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|