@extends('admin.layout.layout') @section('content')

Widgets Management

@if(Session::has('success_message')) @endif

Widgets

    @foreach($widgets as $key => $widget)
  • @if($widget['type'] == "MULTIPLE_BANNERS")▶@endif @if(isset($widget['widget_media']['desktop_image_url']) && $widget['widget_media']['desktop_image_url']) {{ $widget['heading'] }} @endif {{ $widget['heading'] }} ({{ $widget['type'] }} @if($widget['section_type']!="") / {{ $widget['section_type'] }} @endif) @if($widget['status'] == 1) @if($widget['end_date'] > date('Y-m-d')) Active @else Expired @endif @else Inactive @endif
    @csrf @method('DELETE')
    @if($widget['type'] == "MULTIPLE_BANNERS")
      @foreach($widget['child_widgets'] as $child)
    • @if(isset($child['widget_media']['desktop_image_url']) && $child['widget_media']['desktop_image_url']) {{ $child['heading'] }} @endif {{ $child['heading'] }} ({{ $child['type'] }} / {{ $child['section_type'] }}) @if($child['status'] == 1) @if($child['end_date'] > date('Y-m-d')) Active @else Expired @endif @else Inactive @endif
      @csrf @method('DELETE')
    • @endforeach
    @endif
  • @endforeach
@stop