<?php $__env->startSection('content'); ?>
	<div class="container ">
		<div class="row mt-5 pt-1 justify-content-center">
			<div class="col-md-8 col-offset-md-4">
				<div class="card card-primary">
					<div class="card-header"><a href="<?php echo route('backend.categories.form.add'); ?>"><i class="fa fda-plus"></i></a>Listado de Categorias</div>

					<div class="card-body ">
						<table class="table table-categories table-striped table-conde table-hover ">
							<thead class="table-primary">
								<tr>
									<th>Acci&oacute;n</th>
									<th>#</th>
									<th>Categoria</th>
                  <th>Subcategorias</th>
                  <th>Creado</th>
                  <th>Actualizado</th>
								</tr>
							</thead>
							<tbody>
								<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $node): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<tr>
										<td>
											<a class="btn btn-info " data-cid="<?php echo $node->category_id; ?>" href="<?php echo route('backend.categories.form.edit', ['cat' => $node->category_id]); ?>"> <i
													class="fa fa-pencil"></i></a><a class="btn btn-danger" data-cid="<?php echo $node->category_id; ?>" href="#"> <i
													class="fa fa-trash"></i></a>
										</td>
										<td>
											<?php echo $node->category_id; ?>

										</td>
										<td>
											<?php echo $node->category; ?>

										</td>
                    <td> <?php echo $node->subcategories_total; ?></td>
                    <td>
											<?php echo $node->created_at; ?>

										</td>
                    <td>
											<?php echo $node->updated_at; ?>

										</td>
									</tr>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</tbody>

						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
	$('.table-categories').DataTable({
	responsive: true,
	language:{
	url: '<?php echo asset('js/datatables.es.json'); ?>'
	}
	});
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/public_html/ahorrala/resources/views/backend/categories/index.blade.php ENDPATH**/ ?>