@extends('layout') @section('page-title', 'Shop / Product Section') @section('dashboard-content')
Edit Shop / Product Section
@if(session('success'))
{{ session('success') }}
@endif @if(session('error') || session('failed'))
{{ session('error') ?? session('failed') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@csrf {{-- ── Section Header ─────────────────────────────────────── --}}

Section Header

{{-- ── Product Info ────────────────────────────────────────── --}}

Product Info

{{-- ── Sizes & Prices ──────────────────────────────────────── --}}

Sizes & Prices

Numeric only (e.g. 1500)
{{-- ── Product Images ──────────────────────────────────────── --}}

Product Images

@php $imgDefaults = [ 'image_main' => 'images/opt/IMG_0938.jpg', 'image_thumb1' => 'images/opt/IMG_0938.jpg', 'image_thumb2' => 'images/opt/IMG_0960.jpg', 'image_thumb3' => 'images/opt/IMG_09360.jpg', ]; $imgLabels = [ 'image_main' => 'Main Image', 'image_thumb1' => 'Thumbnail 1', 'image_thumb2' => 'Thumbnail 2', 'image_thumb3' => 'Thumbnail 3', ]; @endphp @foreach(['image_main','image_thumb1','image_thumb2','image_thumb3'] as $imgField)
@endforeach {{-- ── Trust Items ─────────────────────────────────────────── --}}

Trust Badges

@php $rawTrust = $product->trust_items ?? null; $trustItems = is_array($rawTrust) ? $rawTrust : (is_string($rawTrust) ? (json_decode($rawTrust, true) ?? []) : []); if (empty($trustItems)) { $trustItems = [ ['icon' => '🌿', 'text' => 'Organic Cotton'], ['icon' => '🚚', 'text' => 'Lagos Delivery'], ['icon' => '🔒', 'text' => 'Secure Checkout'], ['icon' => '↩️', 'text' => 'Easy Returns'], ]; } @endphp @foreach($trustItems as $i => $trust)
@endforeach
@endsection @section('scripts') @endsection