@extends('layouts.app') @section('title', __('Edit tenant')) @section('page-title', $tenant->name) @section('page-subtitle', __('Edit workspace details, free allowance and negotiated rates.')) @section('content') @if(session('status'))
{{ session('status') }}
@endif {{-- ── Identity & billing allowance ────────────────────────────── --}}
@csrf @method('PATCH')

{{ __('Identity') }}

@error('name')
{{ $message }}
@enderror
@error('slug')
{{ $message }}
@enderror

{{ __('Billing allowance') }}

{{ __('Number of free analyses this tenant gets each month before billing kicks in. 0 = no free allowance.') }}

@error('free_analyses_per_month')
{{ $message }}
@enderror

{{ __('Pipeline priority') }}

{{ __('When enabled, this tenant\'s analyses go to the dedicated "analyses-priority" queue, served by its own workers. Use for paying customers who can\'t wait behind a backlog.') }}

{{ __('Cancel') }}
{{-- ── Negotiated per-analysis prices ──────────────────────────── --}} @php $allTypes = config('finance_analyses.types', []); $existing = $tenant->analysisPriceOverrides()->orderBy('analysis_type')->get()->keyBy('analysis_type'); @endphp

{{ __('Negotiated rates') }}

{{ __('Per-analysis price overrides for this tenant. Modifiers (language, output format, etc.) still apply on top.') }}

{{-- Add override --}}
@csrf
@error('analysis_type')

{{ $message }}

@enderror
@error('base_price')

{{ $message }}

@enderror
{{-- Existing overrides --}}
@forelse($existing as $type => $ovr) @csrf @method('PATCH') @empty @endforelse
{{ __('Analysis type') }} {{ __('Base price') }} {{ __('Currency') }} {{ __('Notes') }} {{ __('Actions') }}
{{ $allTypes[$type]['label'] ?? $type }}
{{ $type }}
@csrf @method('DELETE')
{{ __('No negotiated rates — this tenant uses the catalog defaults.') }}
@endsection