GrafiteInc/CMS

View on GitHub
src/Views/modules/events/history.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
@extends('cms::layouts.dashboard')

@section('pageTitle') Event History @stop

@section('content')

    <div class="col-md-12 mt-2">
        @include('cms::modules.events.breadcrumbs', ['location' => [[
            $event->title => cms()->url('events/'.$event->id.'/edit')], 'history'
        ]])
    </div>

    <div class="col-md-12">
        <table class="table table-striped">
            @foreach($event->history() as $history)
                <tr>
                    <td>{{ $history->created_at->format('M jS, Y') }} ({{ $history->created_at->diffForHumans() }})</td>
                    <td class="text-right">
                        <a class="btn btn-warning btn-sm" href="{{ cms()->url('revert/'.$history->id) }}">Revert</a>
                    </td>
                </tr>
            @endforeach
        </table>
    </div>

@endsection