You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
5.7 KiB
PHTML
118 lines
5.7 KiB
PHTML
3 months ago
|
<div class="modal modal-lg fade" id="createContactModal" tabindex="-1" aria-labelledby="createContactModalLabel"
|
||
|
aria-hidden="true">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<h1 class="modal-title fs-5" id="createContactModalLabel">Create Contact</h1>
|
||
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||
|
</div>
|
||
|
<form action="{{route('contacts.store')}}" method="post">
|
||
|
<div class="modal-body">
|
||
|
@csrf
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="customer_id" class="col-md-4 col-form-label text-md-end">Customer</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<input type="hidden" name="customer_id" value="{{$customer->id}}">
|
||
|
<select name="customer_id" id="customer_id" class="form-select" disabled>
|
||
|
<option value="{{ $customer->id }}">
|
||
|
{{ $customer->company_name }}
|
||
|
</option>
|
||
|
</select>
|
||
|
@error('customer_id')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="first_name" class="col-md-4 col-form-label text-md-end">First name</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<input id="first_name" type="text"
|
||
|
class="form-control @error('first_name') is-invalid @enderror"
|
||
|
name="first_name" value="{{ old('first_name') }}"
|
||
|
autocomplete="first_name" autofocus>
|
||
|
|
||
|
@error('first_name')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="last_name" class="col-md-4 col-form-label text-md-end">Last name</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<input id="last_name" type="text"
|
||
|
class="form-control @error('last_name') is-invalid @enderror"
|
||
|
name="last_name" value="{{ old('last_name') }}"
|
||
|
autocomplete="last_name">
|
||
|
|
||
|
@error('last_name')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="email" class="col-md-4 col-form-label text-md-end">Email</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<input id="email" type="text"
|
||
|
class="form-control @error('email') is-invalid @enderror" name="email"
|
||
|
value="{{ old('email') }}" autocomplete="email">
|
||
|
|
||
|
@error('email')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="phone" class="col-md-4 col-form-label text-md-end">Phone number</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<input id="phone" type="text"
|
||
|
class="form-control @error('phone') is-invalid @enderror" name="phone"
|
||
|
value="{{ old('phone') }}" autocomplete="phone">
|
||
|
|
||
|
@error('phone')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="notes" class="col-md-4 col-form-label text-md-end">Notes</label>
|
||
|
|
||
|
<div class="col-md-6">
|
||
|
<textarea name="notes" id="notes" cols="30" rows="3" class="form-control"
|
||
|
autocomplete="notes">{{ old('notes') }}</textarea>
|
||
|
@error('notes')
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $message }}</strong>
|
||
|
</span>
|
||
|
@enderror
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
|
||
|
<button type="submit" class="btn btn-primary">Create contact</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|