@extends('layouts.app') @section('title', ($q ?: 'Search') . ' - ' . config('app.name')) @section('header-left')

Search

@if ($q) “{{ $q }}” @endif @endsection @section('content')
All Tasks Projects Comments
@if ($q === '')

Enter a search term above.

@else
@if ($type === null || $type === 'tasks')

Tasks

@if ($tasksPaginator->isEmpty())

No tasks found.

@else
{{ $tasksPaginator->withQueryString()->links() }}
@endif
@endif @if ($type === null || $type === 'projects')

Projects

@if ($projectsPaginator->isEmpty())

No projects found.

@else
{{ $projectsPaginator->withQueryString()->links() }}
@endif
@endif @if ($type === null || $type === 'comments')

Comments

@if ($commentsPaginator->isEmpty())

No comments found.

@else
{{ $commentsPaginator->withQueryString()->links() }}
@endif
@endif
@endif @endsection