| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
// The $client variable is passed from the controller and is an instance of the Client model |
| 8 |
?> |
| 9 |
|
| 10 |
<div class="p-8"> |
| 11 |
<div class="mb-6"> |
| 12 |
<div class="flex justify-between items-center"> |
| 13 |
<div> |
| 14 |
<h1 class="text-2xl font-bold text-gray-900">Edit Client</h1> |
| 15 |
</div> |
| 16 |
<a href="?page=easy-invoice-clients" class="text-indigo-600 hover:text-indigo-800"> |
| 17 |
<i class="fas fa-arrow-left mr-1"></i> Back to Client List |
| 18 |
</a> |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
|
| 22 |
<!-- Client Edit Form --> |
| 23 |
<div class="bg-white shadow rounded-lg p-6"> |
| 24 |
<?php include_once EASY_INVOICE_PLUGIN_DIR . 'templates/client-form.php'; ?> |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
|
| 28 |
<!-- Client edit functionality is now handled by client-manager.js --> |