@php /** * @var $modelsList array * @var $labels array * @var $attributes array * @var $customActionsBefore callable|null * @var $viewRoute string|null * @var $editRoute string|null * @var $destroyRoute string|null **/ $showActionCollumn = isset($customActionsBefore) || isset($viewRoute) || isset($editRoute) || isset($destroyRoute); @endphp
{{ $label }} | @endforeach @if ($showActionCollumn){{ __('main.actions') }} | @endif|
{!! \Gameap\Helpers\DateHelper::convertToLocal($cellValue) !!} | @else{!! $cellValue !!} | @endif @endforeach @if (isset($modelKey) && $showActionCollumn)@if (isset($customActionsBefore)) {!! $customActionsBefore($modelKey, $model) !!} @endif @if (isset($viewRoute)) {{ __('main.view') }} @endif @if (isset($editRoute)) {{ __('main.edit') }} @endif @if (isset($destroyRoute)) {{ Form::open(['id' => 'form-destroy-' . $modelKey, 'url' => route($destroyRoute, $modelKey), 'style'=>'display:inline']) }} {{ Form::hidden('_method', 'DELETE') }} {{ Form::button( ' ' . __('main.delete') . '', [ 'class' => 'btn btn-danger btn-sm btn-delete', 'title' => __('main.delete'), 'v-on:click' => !isset($destroyConfirmAction) ? 'confirmAction($event, \'' . __('main.confirm_message'). '\')' : $destroyConfirmAction, 'type' => 'submit' ] ) }} {{ Form::close() }} @endif | @endif