<?php $pageTitle = 'Add Customer'; require_once __DIR__ . '/../../app/includes/header.php'; require_role_access('customer:create'); ?>
<div class="page-head"><div><h1>Add Customer</h1><p>Create a customer record.</p></div></div>
<form class="card app-card p-4" method="post" action="<?= APP_BASE ?>/customers/store.php">
    <?= csrf_field() ?>
    <div class="row g-3">
        <div class="col-md-6"><label class="form-label">Customer Name</label><input class="form-control" name="customer_name" required></div>
        <div class="col-md-6"><label class="form-label">Phone</label><input class="form-control" name="phone"></div>
        <div class="col-md-6"><label class="form-label">Email</label><input class="form-control" type="email" name="email"></div>
        <div class="col-md-6"><label class="form-label">Location</label><input class="form-control" name="location"></div>
        <div class="col-md-6"><label class="form-label">Customer Type</label><input class="form-control" name="customer_type" placeholder="Residential, Commercial"></div>
        <div class="col-12"><label class="form-label">Address</label><textarea class="form-control" name="address" rows="3"></textarea></div>
    </div>
    <div class="mt-4"><button class="btn btn-primary">Save Customer</button></div>
</form>
<?php require_once __DIR__ . '/../../app/includes/footer.php'; ?>
