@extends('admin.layout') @section('title', $brandName . ' - ' . $categoryName) @section('page-title', $brandName) @section('content')
Edit Brand @if($brand) Input Fields @endif
@if(session('success'))
{{ session('success') }}
@endif @if($brand)
@if($brand->image) {{ $brand->name }} @else @endif

{{ $brand->name }}

@if($brand->developer)

Developer: {{ $brand->developer }}

@endif @if($brand->description)

{{ $brand->description }}

@endif
@if($brand->is_popular) ⭐ Populer @endif {{ $brand->is_active ? '✓ Aktif' : '✗ Nonaktif' }}
@endif
{{ number_format($stats['total']) }} Total Produk
{{ number_format($stats['active']) }} Aktif
{{ number_format($stats['with_price']) }} Custom Harga
@if(request()->hasAny(['search', 'status'])) Reset @endif

Produk ({{ $products->total() }})

@if($products->count() > 0)
@foreach($products as $product) @endforeach
Gambar SKU Nama Produk Tipe Harga Digiflazz Harga Jual Status Aksi
@if($product->image) @else
@endif
{{ $product->buyer_sku_code }} {{ $product->product_name }} {{ $product->type ?: '-' }} Rp {{ number_format($product->digiflazz_price, 0, ',', '.') }} @if($product->selling_price) Rp {{ number_format($product->selling_price, 0, ',', '.') }} @php $margin = $product->selling_price - $product->digiflazz_price; @endphp
{{ $margin >= 0 ? '+' : '' }}{{ number_format($margin, 0, ',', '.') }} @else - @endif
@if($product->is_active) Aktif @else Nonaktif @endif Edit
@if($products->hasPages())
{{ $products->links() }}
@endif @else

Tidak Ada Produk

Tidak ada produk yang ditemukan dengan filter saat ini.

@endif
@endsection