@extends('layouts.app') @section('title', $client->name) @section('page-title', $client->name) @section('page-subtitle', $client->sectorLabel() ? __($client->sectorLabel()) : __('Company file')) @section('content')
{{ __('All clients') }}
{{ __('Edit') }} @if($client->isArchived())
@csrf
@else
@csrf
@endif
@if(session('status'))
{{ session('status') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- HERO --}}
{{ $client->initials() }}

{{ $client->name }}

@if($client->legalFormLabel()){{ $client->legalFormLabel() }}@endif @if($client->sectorLabel()){{ __($client->sectorLabel()) }}@endif @if($client->sizeLabel()){{ __($client->sizeLabel()) }}@endif @if($client->founded_on){{ __('Founded') }}: {{ $client->founded_on->format('Y') }}@endif @if($client->primary_currency){{ $client->primary_currency }}@endif @if($client->isArchived()) {{ __('Archived') }} @endif
{{ __('New analysis') }}
{{-- ── LEFT — Timeline of analyses ───────────────────────────── --}}

{{ __('Chronological analyses') }}

{{ __(':n total', ['n' => $submissions->total()]) }}
@if($submissions->isEmpty())
{{ __('No analyses yet for this client.') }}
{{ __('Start the first analysis') }}
@else
    @foreach($submissions as $s) @php $latest = $s->latestAnalysis; @endphp
  • {{ $s->created_at->format('Y-m-d H:i') }} @if($latest){{ $latest->typeLabel() }}@endif @if($latest?->finished_at){{ __('Finished') }}: {{ $latest->finished_at->diffForHumans() }}@endif
    {{ __('Open') }} @if($latest && in_array($latest->status, [\App\Models\FileAnalysis::STATUS_DONE, \App\Models\FileAnalysis::STATUS_AWAITING_REVISION], true)) {{ __('Compare') }} @endif
    @csrf
  • @endforeach
{{ $submissions->links() }}
@endif
{{-- ── RIGHT — Identity rail ─────────────────────────────────── --}}
@endsection