/home/mip/mip/app/Modules/Client/Views/reports/audittrail/includes/user-logs-table.blade.php
@extends('Client::reports-table-layouts')
@section('page-body')
    <table class="table table-bordered table-striped table-hover data" id="logs-table" width="100%">
        <thead>
            <tr>
                <td colspan="5" style="text-align: center;"><h2><strong>Audit Trail Report by {{$type}}</strong></h2></td>
            </tr>
            <tr>
                <td colspan="5" style="text-align: center;">From {{$date}}</td>
            </tr>
            <tr>
                <td colspan="5"></td>
            </tr>
            <tr>
                <th style="text-align: center;">No.</th>
                <th style="text-align: center;">Date</th>
                <th style="text-align: center;">Module</th>
                <th style="text-align: center;">Action</th>
                <th style="text-align: center;">Name</th>
            </tr>
        </thead>
        <tbody>
        @foreach($userLogs as $count => $logs)
            <tr>
                <td width="5" style="text-align: center;">{{++$count}}</td>
                <td width="30">{{$logs->created_at}}</td>
                <td width="25">{{$logs->module->title}}</td>
                <td width="20" style="text-align: center;">{{$logs->action}}</td>
                <td width="20">{{$logs->user->name}}</td>
            </tr>
        @endforeach
        </tbody>
   </table>
@stop