PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Classes of Insolita  >  Laravel Interactive Jobs  >  resources/views/logs/show.blade.php  >  Download  
File: resources/views/logs/show.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: 1 month ago
Size: 1,073 bytes
 

 

Contents

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

@section('jobs_content')
    <h4>Logs for {{$group->loggable_type}}: {{$group->loggable_id}}</h4>
    <form action="{{route('logs.destroy', ['log'=>$group])}}" method="POST">
        @method('DELETE') @csrf
        <button type="submit" class="btn btn-sm btn-danger">
            <i class="fa fa-trash-o"></i> Delete
        </button>
    </form>
    @foreach ($logs as $log)
        <div class="card">
            <div class="card-header">
                <div class="badge badge-info">{{$log->level}}</div>
                <div class="badge badge-dark">{{$log->created_at}}</div>
            </div>
            <div class="card-body">
                {{$log->message}}
                {{$log->context ?? ''}}
                {{$log->extra ?? ''}}
            </div>
        </div>
    @endforeach
    <div>
        {{$logs->links()}}
    </div>
@endsection