@extends('worldexpansion.layout') @section('title') Figures @endsection @section('content') {!! breadcrumbs(['World' => 'world', 'Figures' => 'world/figures']) !!}

Figures

{!! Form::open(['method' => 'GET', 'class' => '']) !!}
{!! Form::text('name', Request::get('name'), ['class' => 'form-control', 'placeholder' => 'Name']) !!}
{!! Form::select('type_id', $categories, Request::get('name'), ['class' => 'form-control']) !!}
{!! Form::select( 'sort', [ 'alpha' => 'Sort Alphabetically (A-Z)', 'alpha-reverse' => 'Sort Alphabetically (Z-A)', 'category' => 'Sort by Category', 'newest' => 'Newest First', 'oldest' => 'Oldest First', ], Request::get('sort') ?: 'category', ['class' => 'form-control'], ) !!}
{!! Form::submit('Search', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
{!! $figures->render() !!}
@foreach ($figures as $figure)
@isset($figure->thumb_extension) @endisset

{!! $figure->displayName !!}

{!! $figure->category ? $figure->category->displayName : '' !!}{!! $figure->faction ? ' ・ ' . ucfirst($figure->faction->displayName) : '' !!}

@if (count(allAttachments($figure)))
@foreach (allAttachments($figure) as $type => $attachments)

Associated with {{ count($attachments) }} {{ strtolower($type) }}{{ count($attachments) == 1 ? '' : 's' }}.

@endforeach
@endif @isset($figure->summary) @endisset
@endforeach
{!! $figures->render() !!}
{{ $figures->total() }} result{{ $figures->total() == 1 ? '' : 's' }} found.
@endsection