@extends('layouts.mainTable') @section('content') @if($errors->has('name')) {{ $errors->first('name') }} @endif @foreach ($search_categories as $category) {{ $category->name }} @endforeach @if($errors->has('categories')) {{ $errors->first('categories') }} @endif @foreach ($search_cities as $city) {{ $city->name }} @endforeach @if($errors->has('city_id')) {{ $errors->first('city_id') }} @endif Search Now Results {{ $companies->count() }} Results All Category @foreach ( $categories_all as $category_all) {{ $category_all->name}} {{$category_all->companies->count()}} @endforeach @if (count($companies) > 0) @foreach ($companies as $company) @if($company->logo)@endif {{$company->name}} @foreach ($company->categories as $singleCategories) {{ $singleCategories->name }} @endforeach {{ substr($company->description, 0, 100) }}... @endforeach @endif {{ $companies->appends(request()->all())->links() }} @stop
{{ $errors->first('name') }}
{{ $errors->first('categories') }}
{{ $errors->first('city_id') }}
{{ $companies->count() }} Results
{{ substr($company->description, 0, 100) }}...