{{-- Lightbox Modal --}}
@if(session('success'))
{{ session('success') }}
@endif {{-- Toolbar --}}
Tambah Produk
@php $currentSearch = request('search'); $currentSort = request('sort', 'newest'); @endphp
@if($currentSearch || $currentSort !== 'newest') @endif
{{-- Product Card Grid --}} @if($products->isEmpty())

Belum ada produk.

+ Tambah Produk Pertama
@else
@foreach($products as $product)
{{-- Image --}}
@if($product->image) {{ $product->name }}
Zoom
@else
Belum ada gambar
@endif
{{-- Body --}}

{{ $product->name }}

{{-- Platform Toggles --}}
@foreach(['tiktok' => ['TikTok','#16A34A','#F0FDF4'], 'tokopedia' => ['Tokopedia','#22863A','#F0FDF4'], 'whatsapp' => ['WhatsApp','#16A34A','#F0FDF4']] as $platform => [$label, $activeColor, $activeBg]) @php $active = $product->{'status_'.$platform}; @endphp
@csrf
@endforeach
{{-- Actions --}}
Edit
@csrf @method('DELETE')
@endforeach
@endif