<?php $__env->startSection('title', 'Add Branch'); ?>

<?php $__env->startSection('content'); ?>
<div class="row mt-4">
<div class="col-xl-8 col-lg-9">
    <div class="card custom-card">
        <div class="card-header">
            <div class="card-title">Add Branch</div>
        </div>
        <div class="card-body">
            <form method="post" action="<?php echo e(route('branches.store')); ?>">
                <?php echo csrf_field(); ?>

                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Name *</label>
                        <input type="text" name="name" value="<?php echo e(old('name')); ?>" required class="form-control">
                    </div>
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Code *</label>
                        <input type="text" name="code" value="<?php echo e(old('code')); ?>" required class="form-control">
                    </div>
                </div>

                <div class="mb-3">
                    <label class="form-label">Address</label>
                    <textarea name="address" rows="2" class="form-control"><?php echo e(old('address')); ?></textarea>
                </div>

                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label class="form-label">City</label>
                        <input type="text" name="city" value="<?php echo e(old('city')); ?>" class="form-control">
                    </div>
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Phone</label>
                        <input type="text" name="phone" value="<?php echo e(old('phone')); ?>" class="form-control">
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Opening time</label>
                        <input type="time" name="opening_time" value="<?php echo e(old('opening_time')); ?>" class="form-control">
                    </div>
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Closing time</label>
                        <input type="time" name="closing_time" value="<?php echo e(old('closing_time')); ?>" class="form-control">
                    </div>
                </div>

                <div class="mb-3">
                    <label class="form-label">Status *</label>
                    <select name="status" required class="form-control form-select">
                        <option value="active" <?php echo e(old('status') === 'active' ? 'selected' : ''); ?>>Active</option>
                        <option value="inactive" <?php echo e(old('status') === 'inactive' ? 'selected' : ''); ?>>Inactive</option>
                    </select>
                </div>

                <div class="form-footer mt-3">
                    <button type="submit" class="btn btn-primary me-2">
                        <i class="fe fe-save me-1"></i>Submit
                    </button>
                    <a href="<?php echo e(route('branches.index')); ?>" class="btn btn-secondary">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.sash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\xampp\htdocs\salon\resources\views/branches/create.blade.php ENDPATH**/ ?>