@extends('backend.template.layouts.template-base') @section('title', 'Section Details - ' . $section->name) @section('content')

Section Details

@if ($section->status === 'active') @if ($section->products->count() > 0) Mark as Inactive @else Mark as Inactive @endif @else @if ($section->products->count() > 0) Mark as Active @else Mark as Active @endif @endif icon Edit Section icon Delete Section
{{-- ── Section Summary Card ──────────────────────────────────────────────── --}}
@if ($section->background_image) {{ $section->name }} @else Image @endif
{{ $section->name }}
@if ($section->category) {{ $section->category->name }} @endif @if ($section->section_type) {{ ucfirst($section->section_type) }} @endif
@if ($section->short_description)

{{ Str::limit($section->short_description, 120) }}

@endif Total Products: {{ $section->products->count() }} @if ($section->scheduled_from || $section->scheduled_to)  |  icon @if ($section->scheduled_from) From {{ $section->scheduled_from->format('d/m/Y H:i') }} @endif @if ($section->scheduled_to)  - To {{ $section->scheduled_to->format('d/m/Y H:i') }} @endif @else  |  Last Updated on: {{ $section->updated_at->format('d/m/Y') }} @endif

Status

{{ ucfirst($section->status) }}

{{-- ── Products List ─────────────────────────────────────────────────────── --}}
@forelse ($section->products as $i => $product) @empty @endforelse
S.no Product Group Product Img Product Name Variant & Units Base
Price ₹
Selling
Price ₹
Action
drag-icon {{ $i + 1 }} {{ $product->group?->name ?? '-' }} @if ($product->image) {{ $product->name }} @else product-image @endif
{{ $product->name }} @if ($product->name_tamil) {{ $product->name_tamil }} @endif
@php $defaultPricing = $product->pricing->firstWhere('is_default', true) ?? $product->pricing->first(); @endphp @if ($defaultPricing) {{ $defaultPricing->variant?->value ?? '-' }} @if ($defaultPricing->unit) / {{ $defaultPricing->unit->nickname ?? $defaultPricing->unit->name }} @endif @if ($product->pricing->count() > 1) (+{{ $product->pricing->count() - 1 }} more) @endif @else - @endif @if ($defaultPricing) ₹{{ number_format($defaultPricing->mrp, 2) }} @else - @endif @if ($defaultPricing) ₹{{ number_format($defaultPricing->selling_price, 2) }} @else - @endif
No products in this section.
{{-- ── SEO Settings ──────────────────────────────────────────────────────── --}} @if ($section->seo)
SEO Settings

{{ $section->seo->image_alt ?: '-' }}

{{ $section->seo->meta_title ?: '-' }}

{{ $section->seo->meta_description ?: '-' }}

{{ $section->seo->schema ?: '-' }}

{{ $section->seo->h1 ?: '-' }}

@endif {{-- ── Delete Section Modal ─────────────────────────────────────────────── --}} {{-- ── Activate Section Modal ───────────────────────────────────────────── --}} {{-- ── Inactivate Section Modal ─────────────────────────────────────────── --}} {{-- ── Activation Restricted Modal ──────────────────────────────────────── --}}
@endsection @section('scripts') @endsection