PHP Classes

File: resources/views/logs/index.blade.php

Recommend this page to a friend!
  Classes of Insolita   Laravel Interactive Jobs   resources/views/logs/index.blade.php   Download  
File: resources/views/logs/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Interactive Jobs
Run background jobs and monitor progress on a page
Author: By
Last change:
Date: 4 years ago
Size: 1,470 bytes
 

Contents

Class file image Download
@php
/**
* @var \Illuminate\Support\Collection|\App\Lib\InteractiveJobs\Models\JobLog[]|\Illuminate\Pagination\LengthAwarePaginator $logs
**/
@endphp
@extends('jobs.master')

@section('jobs_content')
    <div class="card">
        <div class="card-header">Logs</div>
        <div class="card-body">
            <table class="table table-hover table-striped table-sm">
                <thead>
                <tr>
                    <th scope="col">Job</th>
                    <th scope="col">Records</th>
                    <th scope="col">Last update</th>
                    <th scope="col"></th>
                </tr>
                </thead>
                @forelse ($logs as $log)
                    <tr>
                        <td>{{$log->loggable_type}}:{{$log->loggable_id}}</td>
                        <td>{{$log->total}}</td>
                        <td>{{$log->created_at}}</td>
                        <td ><a class="btn btn-sm btn-primary" href="{{route('logs.show', ['log'=>$log]) }}">
                                <i class="fa fa-eye"></i>
                            </a>
                        </td>
                    </tr>
                @empty
                    <tr>
                        <td colspan="4" class="table-info"> No records</td>
                    </tr>
                @endforelse
            </table>
        </div>
        <div class="card-footer">
            {{$logs->links()}}
        </div>
    </div>
@endsection