user roles, bug fixes

This commit is contained in:
Kwesi Banson
2026-10-13 14:29:40 +00:00
parent 40162f3080
commit 8428d94abd
14 changed files with 366 additions and 9 deletions

View File

@@ -255,4 +255,42 @@
</form>
</div>
</div>
</div>
<!-- Add Note Modal -->
<div class="modal fade" id="addNoteModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header bg-light border-bottom-0">
<h5 class="modal-title fw-bold">Add Internal Note</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form id="addNoteForm" action="{{ route('mnos.notes.store', $operator->id) }}" method="POST">
@csrf
<div class="modal-body p-4">
<div id="noteModalAlert"></div>
<div class="mb-3">
<label class="form-label text-secondary fw-semibold small">Related Service / Topic (Optional)</label>
<select name="services" id="note_services" class="form-select" style="width: 100%;">
<option value=""></option>
@foreach($allServices as $svc)
<option value="{{ $svc->name }}">{{ $svc->name }}</option>
@endforeach
</select>
</div>
<div class="mb-3">
<label class="form-label text-secondary fw-semibold small">Note Detail *</label>
<textarea name="notes_body" class="form-control" rows="4" required placeholder="Log call notes, updates, or instructions here..."></textarea>
</div>
</div>
<div class="modal-footer bg-light border-top-0">
<button type="button" class="btn btn-outline-secondary btn-sm" data-bs-dismiss="modal">Cancel</button>
<button type="submit" id="btnSubmitNote" class="btn text-white btn-sm fw-bold px-4" style="background-color: #5c4df0;">Save Note</button>
</div>
</form>
</div>
</div>
</div>