@extends('admin.layouts.master') @section('content')
@forelse ($widgets as $widget) @empty @endforelse
⋮⋮ {{ trans('Title') }} {{ trans('Type') }} {{ trans('Settings') }} {{ trans('Status') }} {{ trans('News Details') }} {{ trans('Show From') }} {{ trans('Show Till') }} {{ trans('Actions') }}
⋮⋮ {{ $widget->title }} {{ $widget->type ? __(strtoupper(str_replace('_', ' ', $widget->type))) : trans('N/A') }}
@if (is_array($widget->settings)) @foreach ($widget->settings as $key => $value) @if (!empty($value))
@if (is_array($value)) {{ $key }}: {{ json_encode($value) }} @elseif ($key == 'banner_image') {{ $key }}:
Banner @elseif ($key == 'category_id' || $key == 'tag_id') {{ widget_type_settings($key, $value) }} @else {{ $key }}: {{ $value }} @endif
@endif @endforeach @else {{ $widget->settings }} @endif
{{ $widget->is_active ? trans('Active') : trans('Inactive') }} {{ $widget->show_from ? $widget->show_from->format('Y-m-d H:i') : trans('N/A') }} {{ $widget->show_till ? $widget->show_till->format('Y-m-d H:i') : trans('N/A') }} {{ trans('Edit') }}
@csrf @method('DELETE')
{{ trans('No widgets found.') }}
@if($widgets->hasPages()) @endif
@endsection @section('js') @endsection