@extends('admin.layout') @section('title', 'Productos') @section('page-title', 'Ürünler') @section('content')

Ürünler

Mağaza ürünlerini, varyantlarını ve görsellerini buradan yönetebilirsiniz.

Ürün Ekle
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Ürün Kategori Fiyat Stok Durum İşlemler
@php($primary = $product->images->firstWhere('is_primary', true) ?? $product->images->first()) @if ($primary) @else
@endif
{{ $product->name }}
{{ $product->has_variants ? ($product->variants->count() . ' varyant') : ('SKU: ' . ($product->sku ?? '—')) }}
{{ $product->category?->name ?? '—' }} @php([$min, $max] = $product->effectivePriceRange()) @if ($min == $max) {{ number_format($min, 2, ',', '.') }} ₺ @else {{ number_format($min, 2, ',', '.') }} ₺ – {{ number_format($max, 2, ',', '.') }} ₺ @endif @if ($product->isInStock()) Stokta @else Tükendi @endif
@csrf @method('PATCH') @if($product->is_active) @else @endif
@csrf @method('DELETE')
{{ $products->links() }}
@else

Henüz ürün bulunmamaktadır.

İlk Ürünü Oluştur
@endif
@endsection