@extends('layout.default')
@section('title','Search Results')
@section('script')
@endsection
@section('content')
@include('element.header')
@if(isset($claims) && count($claims)>0)
@php
$idx = 1;
$row = 1;
$rowCount = ceil(count($claims) / 3);
$a = ['purple', 'orange', 'blue', 'teal', 'green', 'yellow'];
@endphp
@foreach($claims AS $claim)
@php
$last_row = ($row == $rowCount);
if ($idx % 3 == 0) {
$row++;
}
@endphp
@include('element.claimbox',['claim'=>$claim,'idx'=>$idx,'last_row'=>$last_row])
@php
$idx++;
@endphp
@endforeach
@else
No results were found.
@endif
@include('element.pagination')
@endsection