@extends('layouts.front') @push('css') @endpush @section('content')
@if (isset($admin))
{{ $admin->name }}
{{ $admin->address }}
@endif @if (isset($user))
{{ $user->name }}
{{ $user->address }}
@endif
    @if (isset($user))
  • {{ count($user->listings) }}
    @lang('Listings')
  • {{ DB::table('followers')->where('user_id',$user->id)->count() }}
    @lang('Followers')
  • {{ DB::table('followers')->where('follower_id',$user->id)->count() }}
    @lang('Followings')
  • @endif @if (isset($admin))
  • {{ count(DB::table('listings')->where('user_id',NULL)->where('admin_id',NULL)->get()) }}
    @lang('Listings')
  • {{ DB::table('followers')->where('user_id','NULL')->count() }}
    @lang('Followers')
  • {{ (int)DB::table('recent_views_listings')->where('listing_owner_id',NULL)->count() }}
    @lang('views')
  • @endif
@if (isset($admin)) @endif @if (isset($user)) @endif
@if (count($listings)>0) @foreach ($listings as $key => $data)
{{ $data->openClose($data->id) }}
@if ($data->is_featured) @endif

{{ $data->name }}

{{ $data->real_address }}
{{ $data->phone_number }}
@endforeach @else

{{__('No Directory Found')}}

@endif
@if($listings->hasPages()) {{ $listings->links() }} @endif
@includeIf('partials.front.cta') @include('partials.front.footer') @endsection @push('js') @endpush