@extends('front.layouts.app') @section('content') @if ($mode === 'boxes') @php $perRow = max(1, min(6, (int) ($config->box_per_row ?? 4))); $col = (int) floor(12 / $perRow); $height = (int) ($config->box_height ?? 180); @endphp
@forelse ($boxes as $box)
@if ($box->imageUrl()) @endif
imageUrl()) style="min-height: {{ $height }}px" @endif>

{{ $box->box_title }}

{{ $box->box_description }}

@empty

Add boxes in the admin to fill the homepage.

@endforelse
@elseif ($page)

{{ $page->title }}

{!! $page->body !!} @else

Choose a front page or homepage boxes in Settings.

@endif @endsection