@extends('admin.layouts.app') @section('title', 'Car Brands') @section('content')
{{-- Page Header --}}

Car Brands

Add New Brand
{{-- Flash --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Stats --}}
{{ $stats['total'] }}
Total Brands
{{ $stats['luxury'] }}
Luxury
{{ $stats['popular'] }}
Popular
{{ $stats['active'] }}
Active
{{-- Filter Bar --}}
@if(request()->hasAny(['search','type','status'])) Clear @endif
{{-- Table Card --}}
{{-- Table Header --}}
All Brands {{ $brands->total() }} result{{ $brands->total() !== 1 ? 's' : '' }} Showing {{ $brands->firstItem() ?? 0 }}–{{ $brands->lastItem() ?? 0 }} of {{ $brands->total() }}
@forelse($brands as $brand) @empty @endforelse
Logo Brand Name Type Status Sort Description Actions
@if($brand->logo) {{ $brand->name }} @else @endif
{{ $brand->name }}
{{ $brand->slug }}
@if($brand->type === 'luxury') Luxury @else Popular @endif @if($brand->is_active) Active @else Inactive @endif {{ $brand->sort_order }} @if($brand->description) {{ Str::limit($brand->description, 50) }} @else @endif
@csrf @method('DELETE')
No brands found
@if(request()->hasAny(['search','type','status']))

Try adjusting your filters.

Clear Filters @else

Get started by adding your first car brand.

Add First Brand @endif
{{-- Pagination --}} @if($brands->hasPages())
Page {{ $brands->currentPage() }} of {{ $brands->lastPage() }}  ·  {{ $brands->total() }} total {{ $brands->links('vendor.pagination.bootstrap-5') }}
@endif
@endsection