@extends('app') @section('titulo', 'Buscar clan') @section('styles') @endsection @section('content')

🏰 Buscador de Clanes

Encuentra tu próximo clan en Clash Royale

@if($error ?? null)
⚠️ {{ $error }}
@endif @if(!empty($clanes ?? []))
@foreach($clanes as $clan)
@if(!empty($clan['badgeId'])) {{ $clan['name'] }} @else 🏰 @endif

{{ $clan['name'] }}

{{ $clan['tag'] }}
👥 Miembros
{{ $clan['members'] }}/50
🏆 Trofeos
{{ number_format($clan['clanScore'] ?? 0) }}
⚔️ Guerra
{{ $clan['clanWarTrophies'] ?? '0' }}
📍 Ubicación
{{ $clan['location']['name'] ?? 'Global' }}
@if(!empty($clan['description']))
{{ $clan['description'] }}
@endif @auth @else @endauth
@endforeach
@elseif(isset($clanTag))

😕

No se encontraron clanes

Intenta con otro nombre o etiqueta

@endif @endsection @section('scripts') @endsection