@extends('super-admin.layout') @section('breadcrumb', 'Propriétaires › Détail') @section('page-title', $owner->name) @section('content')
{{-- Infos propriétaire --}}
👤 Informations du propriétaire
Nom {{ $owner->name }}
Email {{ $owner->email }}
Téléphone {{ $owner->phone ?? '—' }}
Statut @if($owner->is_active ?? true) ✅ Actif @else 🚫 Désactivé @endif
Dernière connexion {{ $owner->last_login_at ? $owner->last_login_at->format('d/m/Y à H:i') : 'Jamais connecté' }}
IP dernière connexion {{ $owner->last_login_ip ?? '—' }}
Compte créé le {{ $owner->created_at->format('d/m/Y') }}
{{-- Hostels du propriétaire --}}
🏨 Hostels ({{ $owner->hostels->count() }})
@forelse($owner->hostels as $hostel)
{{ $hostel->name }}
{{ $hostel->city ?? '' }}{{ $hostel->city && $hostel->country ? ', ' : '' }}{{ $hostel->country ?? '' }}
@if($hostel->is_active ?? true) Actif @else Désactivé @endif Voir
@empty

Aucun hostel enregistré.

@endforelse
{{-- Actions --}}
⚙️ Actions
@csrf @method('PATCH')
@csrf @method('DELETE')
← Retour
@endsection