| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App;
- use App\Helpers\HtmlHelper;
- /**
- * @var Sale $sale
- */
- ?>
- <section class="mb-4" id="sale-notes-section">
- <div class="row mb-3">
- <div class="col">
- <h3><?=htmlspecialchars(__("Notes"))?></h3>
- </div>
- <div class="col-auto">
- <button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#sale-note-modal" data-sale-number="<?=$sale->getNumber()?>">
- <i class="fa fa-fw fa-plus"></i>
- <?=htmlspecialchars(__("Add Note"))?>
- </button>
- </div>
- </div>
- <?php
- $notes = $sale->getNotes();
- if(empty($notes)) {
- HtmlHelper::renderInfoAlert(__("No notes to display."));
- }
- else {
- foreach($notes as $note) {
- View::include("components/comment_card", ["comment" => $note]);
- }
- }
- ?>
- </section>
|