<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">Gallery</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-8">
								<?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">
									<label>Picture</label>
									<input type="file" class="form-control" id="upload" accept="image/*">
								</div>
								<div id="upload-demo" style="width:100%;margin: 0 auto;background: #e6efec;padding-top: 10px;">
								</div>
								<div class="form-group">
									<button class="btn btn-info upload-result">Add in Gallery</button>
								</div>
							</div>
						</div>
					</div>

					<div class="table-responsive">
						<br>
						<table id="galleryTable" class="table table-bordered table-striped">
							<thead>
							<tr>
								<th width="5%">#</th>
								<th width="45%">Picture</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 Brand</h4>
									<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
								</div>
								<div class="modal-body">
									<div class="row">
										<div class="col-md-5">
											<div class="form-group">
												<label>Logo</label>
												<input type="file" class="form-control" id="upload" accept="image/*">
											</div>
											<div id="upload-demo" style="width:100%;margin: 0 auto;background: #e6efec;padding-top: 10px;">
											</div>
											<div class="form-group">
												<button class="btn btn-info upload-result">Add Logo</button>
											</div>
										</div>
										<div class="col-md-7">
											<div id="modal_image"></div>
											<form id="updateForm" method="post">
												<div class="form-group">
													<label class="control-label">Brand Name</label>
													<input type="text" name="brand_name" id="modal_brand" class="form-control" autocomplete="off" placeholder="Enter a manufacturer name">
												</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="Active">Active</option>
														<option value="De-Active">De-Active</option>
													</select>
												</div>
												<input type="hidden" name="brand_id" id="modal_brand_id" 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>
											</form>
										</div>
									</div>
									<input type="hidden" id="modal_brand_id_logo" name="brand_id" readonly>

								</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>
