<?php require_once __DIR__ . '/../../layouts/header.php'; ?>

<div style="max-width: 600px;">
    <h2 style="margin-bottom: 2rem;">Add New Branch</h2>

    <div class="card">
        <form action="/branches/store" method="POST">
            <div class="input-group">
                <label for="name">Branch Name</label>
                <input type="text" id="name" name="name" required placeholder="Downtown Branch">
            </div>

            <div class="input-group">
                <label for="address">Address</label>
                <input type="text" id="address" name="address" placeholder="123 Main St, City">
            </div>

            <div class="input-group">
                <label for="phone">Phone Number</label>
                <input type="text" id="phone" name="phone" placeholder="+1 234 567 8900">
            </div>

            <div style="display: flex; gap: 1rem; margin-top: 2rem;" class="form-row">
                <button type="submit" class="btn-primary" style="flex: 1; margin-top: 0;">Save Branch</button>
                <a href="/branches" class="btn-primary" style="flex: 1; margin-top: 0; background: transparent; border: 1px solid var(--glass-border); color: var(--text-light); text-align: center; text-decoration: none;">Cancel</a>
            </div>
        </form>
    </div>
</div>

<?php require_once __DIR__ . '/../../layouts/footer.php'; ?>
