@extends('worldexpansion.layout') @section('title') {{ $location->style }} @endsection @section('content') @if (Auth::check() && Auth::user()->hasPower('manage_world')) @endif {!! breadcrumbs(['World' => 'world', 'Locations' => 'world/locations', $location->style => 'world/locations/' . $location->id]) !!}

{!! $location->style !!}

{!! ucfirst($location->type->displayName) !!} {!! $location->parent ? 'inside ' . $location->parent->displayName : '' !!}
@if (($user_enabled && $location->is_user_home) || ($ch_enabled && $location->is_character_home))

Can be home to {!! $location->is_character_home && $location->is_user_home ? 'both' : '' !!} {!! $user_enabled && $location->is_user_home ? 'users' : '' !!}{!! $location->is_character_home && $location->is_user_home ? ' and' : '' !!}{!! !$location->is_character_home && $location->is_user_home ? '.' : '' !!} {!! $ch_enabled && $location->is_character_home ? 'characters.' : '' !!}

@endif @if ($location->image_extension)
@endif @isset($location->summary)
{!! $location->summary !!}
@endisset @isset($location->parsed_description)
{!! $location->parsed_description !!}
@endisset
@if (count($location->children))
Contains the following

@foreach ($location->children->groupBy('type_id') as $group => $children)

@if (count($children) == 1) {{ $loctypes->find($group)->name }}@else{{ $loctypes->find($group)->names }} @endif: @foreach ($children as $key => $child) {!! $child->fullDisplayName !!}@if ($key != count($children) - 1) , @endif @endforeach

@endforeach
@endif @if (count(allAttachments($location))) @foreach (allAttachments($location) as $type => $attachments)
Associated {{ $type }}{{ count($attachments) == 1 ? '' : 's' }}
@foreach ($attachments as $attachment)

{!! $attachment->displayName !!}

@endforeach
@endforeach @endif
@if (count($location->gallerysubmissions))
Associated Gallery Submission{{ count($location->gallerysubmissions) == 1 ? '' : 's' }}

@foreach ($location->gallerysubmissions->sortByDesc('created_at')->take(3) as $submission) @include('galleries._thumb', ['submission' => $submission, 'gallery' => true]) @endforeach
@if (count($location->gallerysubmissions) > 2)

See All {{ count($location->gallerysubmissions) }}

@endif @endif @endsection