@extends('admin.layouts.admin') @section('content')
{{ trans('Home Layout') }}
{{ 'Publish' }}
@forelse ($layouts as $info) @empty @endforelse
{{ trans('Example Demo') }} {{ trans('Category / Widgets') }} Action
{{ $info->title }}
@csrf @method('PUT')
@php $cat_settings = json_decode( $info->section->settings, ); $totalCats = $cat_settings->total_category ?? 0; @endphp @for ($i = 0; $i < $totalCats; $i++) @php $selectedCat = $info->categories[$i]->id ?? null; @endphp @endfor
@php $totalWidgets = $cat_settings->total_widgets ?? 0; @endphp @for ($i = 0; $i < $totalWidgets; $i++) @php $selectedWidget = $info->widgets[$i]->id ?? null; @endphp @endfor
status ? 'checked' : '' }}>
@if ($cat_settings->is_lead_news ?? false) @endif @if ($cat_settings->is_main_news ?? false) @endif @if ($cat_settings->is_header ?? false) @endif @if ($cat_settings->is_footer ?? false) @endif
{{ trans('No Layouts Found') }}
{{-- Add Section Modal --}} {{-- Preview Modal --}}
@endsection @section('js') @endsection