updated notes with services and updated sample texts on views
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!-- ========================================== -->
|
||||
<!-- 1. ADD SHORT CODE MODAL -->
|
||||
<!-- ========================================== -->
|
||||
|
||||
<!-- SHORT CODE MODAL -->
|
||||
|
||||
<div class="modal fade" id="addShortcodeModal" tabindex="-1" aria-labelledby="addShortcodeModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
@@ -73,9 +73,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ========================================== -->
|
||||
<!-- 2. ADD PAYMENT MODAL -->
|
||||
<!-- ========================================== -->
|
||||
<!-- ADD PAYMENT MODAL -->
|
||||
|
||||
<div class="modal fade" id="addPaymentModal" tabindex="-1" aria-labelledby="addPaymentModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
@@ -126,9 +125,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ========================================== -->
|
||||
<!-- 3. UPLOAD DOCUMENT MODAL (MULTI-FILE) -->
|
||||
<!-- ========================================== -->
|
||||
<!-- UPLOAD DOCUMENT MODAL -->
|
||||
|
||||
<div class="modal fade" id="uploadDocumentModal" tabindex="-1" aria-labelledby="uploadDocumentModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
@@ -181,6 +179,7 @@
|
||||
|
||||
|
||||
<!-- Client Note Modal -->
|
||||
|
||||
<div class="modal fade" id="addNoteModal" tabindex="-1" aria-labelledby="addNoteModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<form id="noteForm" action="{{ route('client-notes.store') }}" method="POST">
|
||||
@@ -188,17 +187,26 @@
|
||||
<input type="hidden" name="client_id" value="{{ $showclient->id }}">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title fw-bold">Add Note</h5>
|
||||
<h5 class="modal-title fw-bold"><i class="bi bi-chat-square-text text-primary me-2"></i>Add Note</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<textarea name="note" class="form-control" rows="4" placeholder="Enter notes here..." required></textarea>
|
||||
<div class="mb-3">
|
||||
<label class="form-label text-muted small fw-bold">Services</label>
|
||||
<select name="services[]" id="noteServicesSelect" class="form-select" multiple="multiple">
|
||||
<!-- Populated dynamically via AJAX -->
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label text-muted small fw-bold">Note Details</label>
|
||||
<textarea name="note" class="form-control" rows="4" placeholder="Enter notes here..." required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer bg-light">
|
||||
<button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary btn-sm">Save Note</button>
|
||||
<button type="submit" class="btn btn-primary btn-sm px-4">Save Note</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -347,6 +347,16 @@
|
||||
<div class="list-group">
|
||||
@forelse($show_notes as $note)
|
||||
<div class="list-group-item p-3 mb-2 border rounded shadow-sm">
|
||||
@php $noteServices = $note->service_names; @endphp
|
||||
@if($noteServices->count() > 0)
|
||||
<div class="d-flex flex-wrap gap-1 mb-2">
|
||||
@foreach($noteServices as $serviceName)
|
||||
<span class="badge bg-light text-primary border" style="font-size: 0.7rem;">
|
||||
{{ $serviceName }}
|
||||
</span>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<p class="mb-2 text-dark">{{ $note->notes_body }}</p>
|
||||
<div class="d-flex justify-content-between align-items-center text-muted" style="font-size: 0.8rem;">
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user