@extends('layouts.admin') @section('title', 'Kelola Produk') @section('content')

Kelola Produk

Kelola produk yang dijual perusahaan

Total Produk
{{ $products->total() }}
Produk Aktif
{{ $products->where('is_active', true)->count() }}
Produk Unggulan
{{ $products->where('is_featured', true)->count() }}
Stok Habis
{{ $products->where('stock', 0)->count() }}
Reset

Daftar Produk

@if ($products->count() > 0)
@endif
@if ($products->count() > 0)
@foreach ($products as $product) @endforeach
Produk Kategori Harga Stok Status Aksi
@if ($product->featured_image)
{{ $product->name }}
@else
@endif
{{ Str::limit($product->name, 30) }}
SKU: {{ $product->sku }}
@if ($product->is_featured) Unggulan @endif
{{ $product->category->name }}
@if ($product->has_discount)
{{ $product->formatted_price }}
{{ $product->formatted_final_price }}
@else
{{ $product->formatted_final_price }}
@endif
@if ($product->is_digital) Digital @else {{ $product->stock }} @if ($product->stock <= 0) (Habis) @elseif($product->stock <= 10) (Sedikit) @endif @endif
@if ($product->is_active) Aktif @else Nonaktif @endif
{{ $products->links() }}
@else

Belum ada produk

Mulai dengan menambahkan produk pertama.

Tambah Produk
@endif
@endsection