<?php
    $layout = auth()->user()->role === 'super_admin' ? 'layouts.admin' : 'c3.layout';
?>



<?php $__env->startSection('content'); ?>
<h4>Call Log Register</h4>
<a href="<?php echo e(route('c3.call-logs.create')); ?>" class="btn btn-success mb-3">+ New Call Log Entry</a>

<table class="table table-striped table-hover">
    <thead class="table-dark">
        <tr>
            <th>Date</th><th>Caller ID</th><th>Gender</th><th>Age</th><th>Incidence</th><th>Action Taken</th><th>Satisfaction</th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $callLogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($log->date); ?></td>
            <td><?php echo e($log->caller_id); ?></td>
            <td><?php echo e($log->gender); ?></td>
            <td><?php echo e($log->age); ?></td>
            <td><?php if($log->rape_case): ?> Rape <?php endif; ?> <?php if($log->wife_beating): ?> Wife Beating <?php endif; ?></td>
            <td><?php echo e($log->referred_to); ?></td>
            <td><?php echo e($log->satisfaction_feedback); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>

<?php echo e($callLogs->links()); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make($layout, array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wampserver64\www\sswseepcomponents\resources\views/c3/call_logs/index.blade.php ENDPATH**/ ?>