<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}

// The $client variable is passed from the controller and is an instance of the Client model
?>

<div class="p-8">
    <div class="mb-6">
        <div class="flex justify-between items-center">
            <div>
                <h1 class="text-2xl font-bold text-gray-900">Edit Client</h1>
            </div>
            <a href="?page=easy-invoice-clients" class="text-indigo-600 hover:text-indigo-800">
                <i class="fas fa-arrow-left mr-1"></i> Back to Client List
            </a>
        </div>
    </div>

    <!-- Client Edit Form -->
    <div class="bg-white shadow rounded-lg p-6">
        <?php include_once EASY_INVOICE_PLUGIN_DIR . 'templates/client-form.php'; ?>
    </div>
</div>

<!-- Client edit functionality is now handled by client-manager.js --> 