<!-- Edit Location Form -->
<div class="container mt-4">
    <div class="card shadow">
        <div class="card-header bg-warning text-white">
            <h5 class="m-0">Edit Location</h5>
        </div>
        <div class="card-body">
            <form action="<?php echo site_url('Admin/Inventory/Inventory_Location_Controller/update'); ?>" method="post">
                <input type="hidden" name="inventory_location_id" value="<?= $location->inventory_location_id; ?>">

                <div class="mb-3">
                    <label for="inventory_location_nama" class="form-label">Location Name</label>
                    <input type="text" class="form-control" id="inventory_location_nama" name="inventory_location_nama" 
                           value="<?= set_value('inventory_location_nama', $location->inventory_location_nama); ?>" 
                           placeholder="Masukkan nama Location" required>
                </div>


                <div class="d-flex justify-content-end">
                    <button type="submit" class="btn btn-warning me-2">Update</button>
                    <a href="<?php echo site_url('Admin/Inventory/Inventory_Location_Controller/index'); ?>" class="btn btn-secondary">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
