<!-- main area -->
<div class="main-content">
    <div class="page-title">
        <div class="title">Shift</div>
        <div class="sub-title">Add Shift</div>
    </div>
    <div class="card bg-white">
        <div class="card-header">
            <?php if (isset($message)) : ?>
                <div class="alert alert-success"><?php echo $message; ?></div>
            <?php endif ?>
            <?php if (isset($error)) : ?>
                <div class="alert alert-danger"><?php echo $error; ?></div>
            <?php endif ?>
        </div>
        <div class="card-block">
            <?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">
                <button type="submit" class="btn btn-primary m-r">Submit</button>
                <button type="reset" class="btn btn-default">Reset</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<!-- /main area -->
