@extends('admin.layout') @section('title', 'Settings') @section('page_title', 'Settings') @section('content') @php $tabs = [ 'business' => ['label' => 'Business Info', 'icon' => 'M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Z'], 'notifications' => ['label' => 'Notifications', 'icon' => 'M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0'], 'pricing' => ['label' => 'Pricing', 'icon' => 'M12 6v12m-3-2.818.879.659 1.171-.196 1.796.064 2.228.598.521.504.924 1.138.924 1.516v.223c0 .663-.412 1.237-1.03 1.465L9 17.25m-5.25 0a.75.75 0 0 1-.75-.75V8.25a.75.75 0 0 1 .75-.75h1.5m12 0a.75.75 0 0 1 .75.75v8.25a.75.75 0 0 1-.75.75h-1.5'], 'security' => ['label' => 'Security', 'icon' => 'M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z'], ]; @endphp
{{-- ── Sub-sidebar ── --}} {{-- ── Content panel ── --}}
{{-- Success message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- ════════════════════════════════ TAB: Business Info ════════════════════════════════ --}} @if($tab === 'business')

Business Information

Your company details shown in the footer and contact page.

@csrf
@foreach([ ['name' => 'business_name', 'label' => 'Business Name', 'type' => 'text'], ['name' => 'business_phone', 'label' => 'Phone Number', 'type' => 'text'], ['name' => 'business_email', 'label' => 'Business Email', 'type' => 'email'], ['name' => 'business_hours', 'label' => 'Business Hours', 'type' => 'text'], ] as $field)
@error($field['name'])

{{ $message }}

@enderror
@endforeach
{{-- ════════════════════════════════ TAB: Notifications ════════════════════════════════ --}} @elseif($tab === 'notifications')

Notifications

Where contact form submissions get delivered.

@csrf
@error('notification_email')

{{ $message }}

@enderror

Every contact form submission will be sent to this address.

{{-- Keep other required fields with current values so validation passes --}} @if($settings['show_pricing'] === '1') @endif
{{-- ════════════════════════════════ TAB: Pricing ════════════════════════════════ --}} @elseif($tab === 'pricing')

Pricing Plans

Control what pricing is shown on the homepage.

@csrf

Toggle the entire pricing section on the public homepage.

@error('plan_flat_rate')

{{ $message }}

@enderror
@error('plan_percentage')

{{ $message }}

@enderror
{{-- Hidden passthrough fields --}}
{{-- ════════════════════════════════ TAB: Security ════════════════════════════════ --}} @elseif($tab === 'security') {{-- Update Email --}}

Email Address

Current: {{ Auth::user()->email }}

@csrf
@error('email')

{{ $message }}

@enderror
@error('current_password')

{{ $message }}

@enderror
{{-- Change Password --}}

Change Password

Update your admin account password.

@csrf
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror

Minimum 8 characters.

@endif
{{-- end content panel --}}
@endsection