@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())
| {{ __('Active') }} |
{{ __('Account') }} |
{{ __('Transactions') }} |
{{ __('Actions') }} |
@foreach($results['accounts'] as $account)
|
@if($account->active)
@else
@endif
|
{{ $account->name }}
|
|
|
@endforeach
@endif
{{-- Payees --}}
@if(!$results['payees']->isEmpty())
| {{ __('Active') }} |
{{ __('Payee') }} |
{{ __('Transactions') }} |
{{ __('Actions') }} |
@foreach($results['payees'] as $payee)
|
@if($payee->active)
@else
@endif
|
{{ $payee->name }} |
|
|
@endforeach
@endif
{{-- Investments --}}
@if(!$results['investments']->isEmpty())
@foreach($results['investments'] as $investment)
-
{{ $investment->name }}
@if(!$investment->active)
({{ __('inactive') }})
@endif
@endforeach
@endif
{{-- Tags --}}
{{-- 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())
| {{ __('Date') }} |
{{ __('Comment') }} |
{{ __('Actions') }} |
@foreach($results['transactions'] as $transaction)
|
@if(!$transaction->schedule && !$transaction->budget)
{{ $transaction->date->format('Y. m. d.') }}
@else
@endif
|
{{ $transaction->comment }} |
id}}> |
@endforeach
@endif
@endif
@stop