<?php ($room = $room ?? null); ?>

<div style="display:grid; grid-template-columns: repeat(2, 1fr); gap:16px;">
    <div class="form-group">
        <label class="form-label" for="name">Room Name</label>
        <input class="input" type="text" id="name" name="name" value="<?php echo e(old('name', $room?->name)); ?>" required>
    </div>
    <div class="form-group">
        <label class="form-label" for="code">Code</label>
        <input class="input" type="text" id="code" name="code" value="<?php echo e(old('code', $room?->code)); ?>" required>
    </div>
    <div class="form-group">
        <label class="form-label" for="block">Block</label>
        <input class="input" type="text" id="block" name="block" value="<?php echo e(old('block', $room?->block)); ?>">
    </div>
    <div class="form-group">
        <label class="form-label" for="capacity">Capacity</label>
        <input class="input" type="number" id="capacity" name="capacity" min="1" value="<?php echo e(old('capacity', $room?->capacity ?? 1)); ?>" required>
    </div>
    <div class="form-group">
        <label class="form-label" for="fee_amount">Fee Amount</label>
        <input class="input" type="number" step="0.01" id="fee_amount" name="fee_amount" value="<?php echo e(old('fee_amount', $room?->fee_amount ?? 0)); ?>">
    </div>
    <div class="form-group">
        <label class="form-label" for="status">Status</label>
        <select class="input" id="status" name="status">
            <?php $__currentLoopData = ['available', 'occupied', 'maintenance']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($status); ?>" <?php if(old('status', $room?->status ?? 'available') === $status): echo 'selected'; endif; ?>><?php echo e(ucfirst($status)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>
<?php /**PATH C:\laragon\www\southend\resources\views\admin\hostel\_form.blade.php ENDPATH**/ ?>