@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') }}

{{ $walletName }} Setup for {{ $brands->find($activeBrandId)?->name ?? '' }}

@if ($brands->isEmpty())

No Brands Found

You need to create a brand before you can configure wallet settings.

Create Your First Brand
@else
@csrf
@if ($isMobileBanking)

Active Payment Type

@include('dashboard.wallet-merchant-settings')
@elseif($isBank) @include('dashboard.wallet-bank-settings') @elseif($isCrypto) @include('dashboard.wallet-crypto-settings') @endif
@endif
@endsection @push('scripts') @endpush