@extends('snit.layouts.app') @section('content') @if (count($allOrderedItems) >= 1)
Client with Matric Number : "{{ $searchfor }}"

Total Purchases : {{ count($allOrderedItems) }}

{{--
Filter Results for "{{ $searchfor }}"
--}} @if ($searchfor)
Search Results for "{{ $searchfor }}" Search again
@endif
{{--
--}}
@foreach ($table_headers as $heading) @endforeach @foreach ($allOrderedItems as $itemOrdered) @endforeach
{!! $heading !!}
{{ $foundClient->fname }} {{ $foundClient->mat_num }} {{ $foundClient->phone }} {{ $itemOrdered['name'] }} {{ $itemOrdered['price'] }} {{ $itemOrdered['type'] }} {{ $itemOrdered['model']->author->fname }} {{ $itemOrdered['datePurchased'] }}
@elseif(count($allOrderedItems) < 1 && request('searchfor'))

There are no Clients with info : "{{ $searchfor }}"

@elseif(count($allOrderedItems) < 1 && !request('filterby'))

There are no Clients for "{{ $searchfor }}"

@endif @endsection