@extends('layouts.app') @section('title', Lang::get('resources.solrsearch_title_simple')) @section('content') SEARCH {{ Form::open(array('method' => 'GET')) }} {!! Form::text('q', Input::get('q'), array('class'=>'u-full-width', 'placeholder'=>'Enter your search term')) !!} {{-- {{ Form::submit('Search', array('class' => 'btn btn-primary btn-lg')) }} --}} {{ Form::close() }} @if (isset($resultset)) Your search yielded {{ $resultset->getNumFound() }} results: @foreach ($resultset as $document) {{ $document->title_output }} {{ date('D, m M, Y', $document->server_date_modified) }} @if (is_array($document->author)) Author: {{ implode(', ', $document->author) }} @endif Abstract: {{ $document->abstract_output }} @endforeach @endif @endsection
Your search yielded {{ $resultset->getNumFound() }} results:
Abstract: {{ $document->abstract_output }}