@php $descriptionValue = old('description', $brand?->description ?? ''); $facebookValue = old('facebook_url', $brand?->facebook_url ?? ''); $instagramValue = old('instagram_url', $brand?->instagram_url ?? ''); $tiktokValue = old('tiktok_url', $brand?->tiktok_url ?? ''); $trustedChecked = (bool) old('is_trusted', $brand?->is_trusted ?? false); $activeChecked = (bool) old('is_active', $brand?->is_active ?? true); $homeChecked = (bool) old('show_on_home', $brand?->show_on_home ?? true); $viewDetailChecked = (bool) old('show_view_detail', $brand?->show_view_detail ?? true); $offersChecked = (bool) old('show_offers', $brand?->show_offers ?? false); $goldPageChecked = (bool) old('show_on_gold_detail_page', $brand?->show_on_gold_detail_page ?? false); $selectedSports = collect(old('sport_ids', $brand?->sports?->pluck('id')->all() ?? []))->map(fn ($id) => (int) $id)->all(); $contractStart = old('contract_start_date', optional($brand?->contract_start_date)->format('Y-m-d') ?? now('Asia/Karachi')->toDateString()); $contractEnd = old('contract_end_date', optional($brand?->contract_end_date)->format('Y-m-d') ?? now('Asia/Karachi')->addYear()->toDateString()); $categoryTree = []; foreach (($categories ?? []) as $category) { $children = []; foreach ($category->children as $child) { $children[] = ['id' => $child->id, 'name' => $child->name]; } $categoryTree[] = ['id' => $category->id, 'children' => $children]; } $selectedSubcategory = (string) old('brand_subcategory_id', $brand?->brand_subcategory_id ?? ''); @endphp

Basic Information

Name, owner, sports, and short card text for the app listing.

Shown under the brand logo on the Sports Brands screen. Keep it short (1–2 lines). Max 500 characters. This is separate from the rich About text below.

@error('short_description'){{ $message }}@enderror

Optional. Select any sports types that apply. A brand can appear under every selected sport filter in the app.

@foreach ($sports as $sport) @endforeach
@error('sport_ids'){{ $message }}@enderror @error('sport_ids.*'){{ $message }}@enderror

Bold, italic, lists, and links. Unsafe HTML is stripped on save.

{!! $descriptionValue !!}
@error('description'){{ $message }}@enderror

Brand Status

Active/inactive and home visibility. Contract dates control public app visibility automatically.

Gold Page Settings

Only brands with this switch on appear under Featured Jewellers, ordered by the number below.

Contract

Dates use Pakistan calendar day (Asia/Karachi). Expired brands stay in Admin but leave the app automatically.

Social Media

Optional. Only filled platforms appear on the brand page.