@extends('layouts.app') @section('title', __('Billing settings')) @section('content') @if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif

{{ __('Billing settings') }}

{{ __('Configure how you bill your end users — pricing, payments, bank details and request workflow.') }}

{{-- Tabs --}}
@foreach([ 'pricing' => __('Pricing'), 'workflow' => __('Workflow'), 'gateways' => __('Payment gateways'), 'bank' => __('Bank transfer'), ] as $key => $label) {{ $label }} @endforeach
@if($tab === 'pricing')
@csrf

{{ __('Retail pricing') }}

{{ $pricing['currency'] }}

{{ __('Charged to your end users per analysis.') }}

{{ $pricing['currency'] }}

{{ __('0 = no floor.') }}

%

{{ __('Per-user overrides') }}

{{ __('Leave empty to use the standard rate.') }}

@forelse($users as $u) @php $key = 'user_override_'.$u->id; $cur = $tenant->id ? \App\Models\TenantSetting::get($tenant->id, 'pricing', $key) : null; @endphp @empty @endforelse
{{ __('User') }} {{ __('Override price') }}
{{ $u->name }}
{{ $u->email }}
{{ __('No end users yet.') }}
@elseif($tab === 'workflow')
@csrf

{{ __('Request workflow') }}

{{ __('How long an end user can cancel a request after submitting it. Default 15 minutes.') }}

@elseif($tab === 'gateways')
@csrf

{{ __('Stripe') }}

{{ __('Leave blank to keep the existing key. Encrypted at rest.') }}

{{ __('PayPal') }}

@else
@csrf

{{ __('Bank-transfer details') }}

{{ __('Shown verbatim on every end-user invoice for clients who pay by SEPA wire transfer.') }}

{{ __('Use :invoice_number as a placeholder.') }}

@endif @endsection