@php
$location = app('request')->input('keyword')
@endphp
@if($location!='')
{{--*/ $i = 1 /*--}}
@foreach($onsites as $onsite)
@php
$date = date('d M Y', strtotime($onsite->tdate));
@endphp
@if(strtolower($onsite->tlocation) == strtolower($location) || strtolower($date )== strtolower($location))
@php
$data = $onsite->trname;
$dataid1 = substr($data, 0, strpos($data, " "));
@endphp
{{ $onsite->tmodule_name }}
{{--*/ $i++ /*--}}
@endif
@endforeach
@if($i == 1)
No module found
@endif
@else
@foreach($onsites as $onsite)
@php
$data = $onsite->trname;
$dataid1 = substr($data, 0, strpos($data, " "));
@endphp
{{ $onsite->tmodule_name }}
@endforeach
@endif