@extends('admin.layouts.app') @section('title', 'Edit Car Brand') @section('content')
{{-- Breadcrumb / Header --}}

Edit Car Brand

Car Brands / {{ $carBrand->name }}
ID: {{ $carBrand->id }} {{ $carBrand->created_at?->format('d M Y') }}
@if($errors->any())
Please fix the following errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
{{-- LEFT: Form --}}
{{-- Brand Name --}}
@error('name')
{{ $message }}
@enderror
{{-- Type --}}
@error('type')
{{ $message }}
@enderror

{{-- Logo Upload --}}
{{-- Current Logo --}} @if($carBrand->logo)
{{ $carBrand->name }}
Current Logo
Upload a new file to replace it
@endif
{{ $carBrand->logo ? 'Upload new logo to replace' : 'Click to upload logo' }}
PNG, JPG, WebP — max 2MB
@error('logo')
{{ $message }}
@enderror

{{-- Sort Order + Active --}}
Lower = shown first
Status
Visible to users
{{-- Description --}}
{{-- Buttons --}}
{{-- RIGHT: Live Preview --}}
Live Preview
{{-- Logo Preview --}}
@if($carBrand->logo) {{ $carBrand->name }} @else @endif
{{-- Name --}}
{{ $carBrand->name }}
{{ $carBrand->slug }}
{{-- Badges --}}
{{ ucfirst($carBrand->type) }} {{ $carBrand->is_active ? 'Active' : 'Inactive' }}
{{ $carBrand->description ?: 'No description added' }}
{{-- Tips --}}
Tips
  • Use a square logo (1:1 ratio) for best results
  • PNG with transparent background looks best
  • Sort order 0 appears first in listings
  • Inactive brands are hidden from customers
@endsection