@extends('template.layout') @section('title', 'Guilds') @section('submenuItem', 'guilds') @section('content')

{{ $guild->name }}


Guild Information
@if(!empty($guild->web_guild->description)) {{ $guild->web_guild->description }}

@endif The guild was founded on {{ date('M d Y', $guild->creationdata) }}.
@if($guild->active) It is currently active.
@else It is still in course of formation.
@endif @if($guild->applications_enabled) Guild is opened for applications.
@else Guild is closed for applications.
@endif @if(!$guild->active) It will be disbanded on {{ date('M d Y', $guild->creationdata + 3 * 24 * 60 * 60) }} if there are still less than four vice leaders by then.
@endif
Navigation
@if(\App\Utils\Guild::hasLeaderPrivileges($guildLevelRank))
Administration
@if($guild->active)
@endif
@endif

Guild Members
@foreach($guild->members->sortBy('ranks.level')->groupBy('ranks.level') as $guildMemberGroups) @php $rowClass = $loop->index % 2 == 0 ? 'Even' : 'Odd'; @endphp @foreach($guildMemberGroups as $guildMember) @endforeach @endforeach
Rank Name and Title Vocation Level Status
@if($loop->first) {{ $guildMember->ranks->name }} @endif {{ $guildMember->player->name }} @if(!empty($guildMember->nick)) ({{ $guildMember->nick }}) @endif {{ \App\Utils\Vocation::getNameByVocationId($guildMember->player->vocation) }} {{ $guildMember->player->level }} @if($guildMember->player->online) online @else offline @endif
@if(\App\Utils\Guild::hasLeaderOrViceLeaderPrivileges($guildLevelRank))
@endif @if(\App\Utils\Guild::hasMemberPrivileges($guildLevelRank))
@endif
Invited Characters
@forelse($guild->invitations as $guildInvite) @php $rowClass = $loop->index % 2 == 0 ? 'Even' : 'Odd'; @endphp @if($loop->first) @endif @empty @endforelse
Name Invitation Date
{{ $guildInvite->player->name }} {{ date('M d Y', strtotime($guildInvite->created_at)) }}
No invited characters found.
@if(Auth::check()) @if(!empty($invitedPlayers)) @endif @if(\App\Utils\Guild::hasLeaderOrViceLeaderPrivileges($guildLevelRank)) @endif @if(!empty($applyAbleCharacters) && $guild->applications_enabled) @endif @if(empty($applyAbleCharacters) && \App\Utils\GuildApplications::hasGuildApplications($guild) || !$guild->applications_enabled && \App\Utils\GuildApplications::hasGuildApplications($guild)) @endif @else @endif

@endsection