<div class="container-fluid">
	<!-- ============================================================== -->
	<!-- Start Page Content -->
	<!-- ============================================================== -->
	<div class="row ">
		<div class="col-12">
			<div class="card card-outline-info">
				<div class="card-header">
					<h6 class="m-b-0 text-white">Notice</h6>
				</div>

				<div class="card-body">
					<button type="button" class="btn btn-info open" data-toggle="collapse" data-target="#add">Add New</button>
					<div id="add" class="collapse">
						<div class="row justify-content-center">
							<div class="col col-md-5">
								<form id="addForm" method="post">
									<div class="form-group">
										<label class="control-label">Notice</label>
										<input type="text" name="notice" class="form-control" autocomplete="off" placeholder="Write a short notice">
									</div>
									<?php
									$csrf = array(
										'name' => $this->security->get_csrf_token_name(),
										'hash' => $this->security->get_csrf_hash()
									);
									?>
									<input type="hidden" name="<?= $csrf['name']; ?>" id="token_key" value="<?= $csrf['hash']; ?>" class="form-control login_style" readonly>


									<div class="submit-btn-group text-xs-right">
										<button type="submit" class="btn btn-info submit_button">Submit</button>
										<button type="reset" class="btn btn-inverse reset_button">Cancel</button>
									</div>
								</form>
							</div>
						</div>
					</div>

					<div class="table-responsive">
						<br>
						<table id="noticeTable" class="table table-bordered table-striped">
							<thead>
							<tr>
								<th width="5%">#</th>
								<th width="15%">Date</th>
								<th width="50%">Notice</th>
								<th width="20%">Status</th>
								<th width="10%">Action</th>
							</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>


					<div class="modal fade" id="full_width_modal_parent" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel1" data-backdrop="static" data-keyboard="false">
						<div class="modal-dialog modal-lg full_width_modal" role="document">
							<div class="modal-content full_width_modal_content">
								<div class="modal-header">
									<h4 class="modal-title" id="exampleModalLabel1">Edit Notice</h4>
									<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
								</div>
								<div class="modal-body">
									<form id="updateForm" method="post">
										<div class="form-group">
											<label class="control-label">Notice</label>
											<input type="text" name="notice" id="modal_notice" class="form-control" autocomplete="off" placeholder="Write a short notice">
										</div>
										<div class="form-group">
											<label class="control-label">Status</label>
											<select class="form-control" name="status" id="modal_status">
												<option value="">-select a status-</option>
												<option value="1">Active</option>
												<option value="2">De-Active</option>
											</select>
										</div>
										<?php
										$csrf = array(
												'name' => $this->security->get_csrf_token_name(),
												'hash' => $this->security->get_csrf_hash()
										);
										?>
										<input type="hidden" name="<?= $csrf['name']; ?>" id="token_key" value="<?= $csrf['hash']; ?>" class="form-control login_style" readonly>
										<div class="form-group">
											<button type="submit" class="btn btn-info update_button_2">Update</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
										</div>
									<input type="hidden" id="modal_id" name="notice_id" readonly>
									</form>
								</div>
								<div class="modal-footer">
									<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- ============================================================== -->
	</div>

</div>
