@extends('layouts.app') @section('title', $title) @section('content')

{{ $title }}

@if($moduleKey === 'invoice-settings') {{ __('Company Profile') }} @endif @if(in_array($moduleKey, ['invoice-settings', 'notification-settings'])) {{ __('General Settings') }} @endif
@if(!empty($details['notice']))
{{ $details['notice'] }}
@endif @if(isset($details['items']))
@foreach($details['items'] as $label => $value)@endforeach
{{ __('Setting') }}{{ __('Current value') }}
{{ $label }}{{ $value ?? '—' }}
@endif @if(isset($details['stages']))
@foreach($details['stages'] as $index => $stage)@endforeach
{{ __('Order') }}{{ __('Workflow stage') }}{{ __('Available statuses') }}
{{ $index + 1 }}{{ __(\Illuminate\Support\Str::headline($stage)) }}{{ collect($details['stageStatuses'][$stage] ?? [])->map(fn ($status) => __(\Illuminate\Support\Str::headline($status)))->join(', ') }}
@endif @if(array_key_exists('notifications', $details))
@forelse($details['notifications'] as $notification) {{ $notification['label'] }} {{ __(ucfirst($notification['tone'])) }} @empty
{{ __('There are no current notifications for this account.') }}
@endforelse
@endif @endsection