@extends('template.layout')
@section('title', 'Who is online?')
@section('submenuItem', 'whoisonline')
@section('content')
@if(config('multi_world.enabled'))
@endif
| Status: |
Online
|
| Players Online: |
{{ number_format($playersOnline->count()) }} |
| Location: |
{{-- {{ \App\Utils\World::getCurrentWorld()['location'] }} --}}BR
|
| PvP Type: |
{{ \App\Utils\World::getCurrentWorld()['pvp_type'] }} |
|
| Name [sort] |
Level [sort] |
Vocation [sort] |
@forelse($playersOnline as $online)
@php
if (Str::startsWith($online->player->name, 'GOD')) {
continue;
}
if (Str::startsWith($online->player->name, 'GM')) {
continue;
}
$rowClass = $loop->index % 2 == 0 ? 'Even' : 'Odd';
@endphp
|
{{$online->player->name }}
|
{{ $online->player->level }} |
{{ \App\Utils\Vocation::getNameByVocationId($online->player->vocation) }} |
@empty
| Nobody is currently online. |
@endforelse
|
@endsection