@extends('auth.layout.app') @section('title', config('app.name') . ' - Connexion') @section('content') @php use Laravel\Fortify\Features; @endphp @if (session('otp_pending_user_id')) {{-- ────────── ÉTAPE 2 : Code OTP ────────── --}}

{{ __('auth.otp.title') }}

{{ __('auth.otp.description') }}

@if ($errors->has('otp'))
{{ $errors->first('otp') }}
@endif
@csrf
@csrf
@else {{-- ────────── ÉTAPE 1 : Login ────────── --}}

{{ __('auth.login.title') }}

@if (Features::enabled(Features::registration()))
{{ __('auth.login.need_account') }} {{ __('auth.register.title') }}
@endif
{{-- Validation errors --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('status'))
{{ session('status') }}
@endif {{-- Login form --}}
@csrf {{-- Email --}}
{{-- Password --}}
@error('password') {{ $message }} @enderror
{{-- Remember me --}}
@if (Route::has('password.request')) {{ __('auth.login.forgot_password') }} @endif
{{-- Submit --}}
@endif @endsection