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

Concepts

{!! 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() !!}
{!! $concepts->render() !!}
@foreach ($concepts as $concept)
@isset($concept->thumb_extension) @endisset

{!! $concept->displayName !!}

{!! $concept->category ? $concept->category->displayName : '' !!}

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

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

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