<!-- Add Department Modal -->
<div id="add_shifts_modal" class="modal fade" tabindex="-1" aria-labelledby="addDepartmentModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document" style="display: block;">
      <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" 
             value="<?= $this->security->get_csrf_hash(); ?>" />
      
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="addDepartmentModalLabel">Add Department</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        
        <div class="modal-body">
            <?php
            $attributes = array('name' => 'formAdd', 'id' => 'formAdd', 'class' => 'form-validation');
            echo form_open_multipart('admin/shifts/add', $attributes);
            ?>
            <div class="form-group">
                <label for="shiftName">Shift Name</label>
                <input type="text" name="name" id="shiftName" class="form-control" placeholder="Shift Name" required>
            </div>
            <div class="form-group">
                <label for="shiftDescription">Shift Description</label>
                <input type="text" id="shiftDescription" name="description" class="form-control" placeholder="Shift Description" required>
            </div>
            <div class="form-group">
                <label for="shiftStart">Shift Start Time</label>
                <input type="time" id="shiftStart" name="start_time" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="shiftEnd">Shift End Time</label>
                <input type="time" id="shiftEnd" name="end_time" class="form-control" required>
            </div>
            <div class="form-group">
            </div>
        <div class="modal-footer">
          <button type="submit" class="btn btn-primary">Submit</button>
                      <?php echo form_close(); ?>        

        </div>
      </div>
  </div>
</div>


