<?php $__env->startSection('content'); ?>
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span class="panel-title" >
					<?php echo e(_lang('WhatsApp Log')); ?>

				</span>
				<a href="<?php echo e(url('Whatsapp/create-whatsapp')); ?>" class="btn btn-primary btn-sm pull-right"><?php echo e(_lang('New whatsApp')); ?></a>
			</div>
			<div class="panel-body no-export">
				<table id="tblRecords" class="table table-bordered">
					<thead>
						<th><?php echo e(_lang('Date')); ?></th>
						<th><?php echo e(_lang('Mobile')); ?></th>
						<th><?php echo e(_lang('Message')); ?></th>
						<th><?php echo e(_lang('Sender')); ?></th>
					</thead>
					<tbody>
						<?php $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr>
							<td><?php echo e(date('d/M/Y - H:m', strtotime($data->created_at))); ?></td>
							<td><?php echo e($data->receiver); ?></td>
							<td><?php echo e($data->message); ?></td>
							<td><?php echo e($data->sender); ?></td>
						</tr>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</tbody>
				</table>
				
				<div class="pull-right">
					<?php echo e($messages->links()); ?>

				</div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js-script'); ?>
<script>
	$(document).ready(function () {
		var table = $('#tblRecords').DataTable();

	$('#customSearchBox').on('keyup', function () {
    table.search(this.value).draw();
});
$("#tblRecords").on('init.dt', function () {
    $("#tblRecords th").removeClass("sorting sorting_asc sorting_desc");
});
	});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hostelmanager/public_html/test.hostelmanager.pk/resources/views/backend/Whatsapp/whatsapp-log.blade.php ENDPATH**/ ?>