@extends('backend.template.layouts.template-base') @section('title', 'Section — '.$section->title) @section('content') @can('update', \App\Models\HomepageSection::class) Edit @endcan Back
{{ $section->title }}

Slug: {{ $section->slug }}

Status: {{ $section->statusLabel() }}

Display Order: {{ $section->display_order }}

@if ($section->short_description)

{{ $section->short_description }}

@endif

Created by {{ $section->creator?->name ?? '—' }} on {{ $section->created_at?->format('d M Y, h:i A') }}
Last updated by {{ $section->updater?->name ?? '—' }} on {{ $section->updated_at?->format('d M Y, h:i A') }}

Products ({{ $section->sectionProducts->count() }})

@if ($section->sectionProducts->isEmpty()) @else
    @foreach ($section->sectionProducts as $sectionProduct) @php $product = $sectionProduct->product; @endphp @if ($product)
  • {{ $product->name }}
    {{ $product->name }} {{ $product->category?->name ?? '—' }}
    {{ $product->statusLabel() }}
  • @endif @endforeach
@endif
@endsection