
<?php $__env->startSection('content'); ?>

<div class="row">
	<div class="col-md-12">
		<div class="card strpied-tabled-with-hover">
			<div class="card-header ">
				<div class="row">
					<div class="col-md-3 mt-r">
						<h4 class="card-title">Recibos</h4>
						<p class="card-category">Recibos de Pago</p>
					</div>
					
					<div class="col-md-3 mt-r">
						<form method="GET" action="<?php echo e(url('busqueda')); ?>">
							<?php echo csrf_field(); ?>
							<input name="num" type="text" class="form-control" placeholder="Número de recibo" required>
						
					</div>

					<div class="col-md-3 mt-r">
						<button type="submit" class="form-control btn btn-primary btn-fill pull-right">Buscar</button>
					</div></form>
					
					<div class="col-md-3">
						<a href="<?php echo e(route('recibo.create')); ?>">
							<button class="btn btn-success btn-sm btn-fill pull-right">Nuevo Recibo</button>
						</a>
					</div>
				</div>
			</div>
			<div class="card-body table-full-width table-responsive">
				<table class="table table-hover table-striped">
					<thead>
						<th>Folio</th>
						<th>Fecha</th>
						<th>Cliente</th>
						<th>Cantidad</th>
						<th>Concepto</th>
						<th></th>
					</thead>
					<tbody>
						<?php $__currentLoopData = $r; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<tr>
								<td>#<?php echo e($row->id); ?></td>
								<td><?php echo e($row->fecha); ?></td>
								<td><?php echo e($row->cliente); ?></td>
								<td>$<?php echo e(number_format($row->cantidad, 2)); ?></td>
								<td><?php echo e($row->concepto); ?></td>
								<td>
									<a href="<?php echo e(url('generar_recibo/'.$row->id)); ?>" target="_blank">
										<button class="btn btn-danger btn-xs btn-fill">
											Ver Recibo
										</button>
									</a>
								</td>
							</tr>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</tbody>
				</table>
				<div class="d-flex justify-content-center mt-3">
					<?php echo e($r->links('pagination::bootstrap-4')); ?>

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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\rcv\resources\views/recibo/index.blade.php ENDPATH**/ ?>