@extends('layouts.admin') @section('title', 'Kelola Brand Gaun - Lourent Admin') @section('content')
{{-- Flash Notifications --}} @if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif {{-- Top Action Header --}}

Kelola Brand Gaun & Desainer

Atur daftar merek, desainer, dan label busana untuk katalog koleksi Lourent.

Ke Stok Gaun
{{-- Stat Cards --}}
Total Brand

{{ number_format($totalBrands) }}

Merek terdaftar di sistem
Brand Aktif

{{ number_format($activeBrandsCount) }}

Memiliki koleksi gaun di katalog
Total Gaun Terkait

{{ number_format($totalDressesWithBrand) }}

Koleksi dress dengan identitas brand
{{-- Main Filter & Table Card --}}
{{-- Filter Header --}}
@if(!empty($search) || $sort !== 'name_asc') @endif
{{-- Table --}}
@forelse($brands as $index => $b) @php $logoUrl = null; if (!empty($b->logo)) { if (str_starts_with($b->logo, 'http://') || str_starts_with($b->logo, 'https://')) { $logoUrl = $b->logo; } else { $logoUrl = asset('storage/' . $b->logo); } } $initials = strtoupper(substr($b->name, 0, 2)); @endphp @empty @endforelse
# Logo Nama Brand & Slug Jumlah Gaun Dibuat Pada Aksi
{{ $brands->firstItem() + $index }} @if($logoUrl)
{{ $b->name }}
@else
{{ $initials }}
@endif
{{ $b->name }}
{{ $b->slug }}
@if($b->dresses_count > 0) {{ $b->dresses_count }} Gaun @else 0 Gaun @endif
{{ $b->created_at ? $b->created_at->format('d M Y') : '-' }}
{{ $b->created_at ? $b->created_at->format('H:i') . ' WIB' : '' }}
Belum ada data brand ditemukan.
Silakan tambah brand baru atau ubah kata kunci filter pencarian.
{{-- Pagination --}} @if($brands->hasPages())
Menampilkan {{ $brands->firstItem() }} - {{ $brands->lastItem() }} dari {{ $brands->total() }} brand
{{ $brands->links() }}
@endif
{{-- MODAL TAMBAH BRAND --}} {{-- MODAL EDIT BRAND --}} {{-- MODAL HAPUS BRAND --}} @endsection @push('scripts') @endpush