@extends('layouts.app')
@php
$prefix = auth()->user()->role === 'admin' ? 'admin.' : 'user.';
$brands = \App\Models\Brand::where('status', 1)->get();
$activeBrandId = request()->query('brand_id'); // This will be set by the controller redirect if empty
if (!$activeBrandId) {
$user = auth()->user();
if ($user) {
$activeBrandId = \App\Models\Brand::where('user_id', $user->id)->where('status', 1)->first()?->id;
}
}
@endphp
@section('content')
{{ __($walletName . ' Settings') }}
You need to create a brand before you can configure wallet settings.
Create Your First Brand