@include('pages.search.modal.categories')
@if($count == 0) @include('pages.search.modal.404') @else @if($clients['state'] && $clients['count'] > 0) @include('pages.search.results.clients') @endif @if($projects['state'] && $projects['count'] > 0) @include('pages.search.results.projects') @endif @if($contacts['state'] && $contacts['count'] > 0) @include('pages.search.results.contacts') @endif @if($contracts['state'] && $contracts['count'] > 0) @include('pages.search.results.contracts') @endif @if($tasks['state'] && $tasks['count'] > 0) @include('pages.search.results.tasks') @endif @if($leads['state'] && $leads['count'] > 0) @include('pages.search.results.leads') @endif @if($files['state'] && $files['count'] > 0) @include('pages.search.results.files') @endif @if($attachments['state'] && $attachments['count'] > 0) @include('pages.search.results.attachments') @endif @if($tickets['state'] && $tickets['count'] > 0) @include('pages.search.results.tickets') @endif @if($proposals['state'] && $proposals['count'] > 0) @include('pages.search.results.proposals') @endif @if($knowledgebase['state'] && $knowledgebase['count'] > 0) @include('pages.search.results.knowledgebase') @endif @endif
@if(isset($search_type) && $search_type != 'all' && $count > 0) @include('pages.search.modal.load-more')
@endif