@extends('template.layouts.page') @section('title_postfix', __('Search')) @section('content_container_classes', 'container-fluid') @section('content_header', __('Search results')) @section('content') {{-- Display the search form --}}
{{-- Display the search results if any results are set --}} @if($results && count($results) > 0)

{{ __('Results for search term:') }} "{{ $searchTerm }}"

{{-- Accounts --}}
@if(!$results['accounts']->isEmpty())
@foreach($results['accounts'] as $account) @endforeach
{{ __('Active') }} {{ __('Account') }} {{ __('Transactions') }} {{ __('Actions') }}
@if($account->active) @else @endif {{ $account->name }}
@endif
{{-- Payees --}}
@if(!$results['payees']->isEmpty())
@foreach($results['payees'] as $payee) @endforeach
{{ __('Active') }} {{ __('Payee') }} {{ __('Transactions') }} {{ __('Actions') }}
@if($payee->active) @else @endif {{ $payee->name }}
@endif
{{-- Investments --}}
@if(!$results['investments']->isEmpty())
    @foreach($results['investments'] as $investment)
  • {{ $investment->name }} @if(!$investment->active) ({{ __('inactive') }}) @endif
  • @endforeach
@endif
{{-- Tags --}}
@if(!$results['tags']->isEmpty())
    @foreach($results['tags'] as $tag)
  • {{ $tag->name }} @if(!$tag->active) ({{ __('inactive') }}) @endif {{-- Placeholder span for transaction count --}}
  • @endforeach
@endif
{{-- Categories --}}
@if(!$results['categories']->isEmpty())
    @foreach($results['categories'] as $category)
  • {{ $category->full_name }} @if(!$category->active) ({{ __('inactive') }}) @endif {{-- Placeholder span for transaction count --}}
  • @endforeach
@endif
{{-- Transactions --}}
@if(!$results['transactions']->isEmpty())
@foreach($results['transactions'] as $transaction) @endforeach
{{ __('Date') }} {{ __('Comment') }} {{ __('Actions') }}
@if(!$transaction->schedule && !$transaction->budget) {{ $transaction->date->format('Y. m. d.') }} @else @endif {{ $transaction->comment }}
@endif
@endif @stop