50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
@extends('admin.layout')
|
|
|
|
@section('pageName', @trans('admin/widgets.overview'))
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
<h2>@lang('admin/widgets.overview')</h2>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
@if (session('success'))
|
|
<div class="callout success">
|
|
{{ session('success') }}
|
|
</div>
|
|
@endif
|
|
|
|
@if (session('error'))
|
|
<div class="callout alert">
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
|
|
@if (!empty($widgets))
|
|
<table class="full-width">
|
|
<tr>
|
|
<th>@lang('admin/widgets.widgetType')</th>
|
|
<th>@lang('admin/widgets.name')</th>
|
|
<th>@lang('admin/widgets.description')</th>
|
|
<th>@lang('admin/widgets.actions')</th>
|
|
</tr>
|
|
@foreach($widgets as $widget)
|
|
<tr>
|
|
<td>{{trans(call_user_func([$widget->widget_type_handler, 'getName']))}}</td>
|
|
<td>{{$widget->name}}</td>
|
|
<td>{{$widget->description}}</td>
|
|
<td class="text-center">
|
|
<a href="{{route('widgets.edit', ['id' => $widget->id])}}"><i class="fa fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
{!! $widgets->render() !!}
|
|
@else
|
|
<em>@lang('admin/widgets.noEntries')</em>
|
|
@endif
|
|
</div>
|
|
@stop |