@section('content')
@if(Cauth::isAgent($user_profile)) @else @endif

{{ $user_profile->fullname }} Agent

@if(Cauth::isAgent($user_profile))@endif
@if($user_profile->location!='')

{{ $user_profile->location }}

@endif Write a Review
@if(isset($broker)) @if($active=='details')

Languages: {{ $broker->languages }}

@if($broker->business_since!='')

Experience: {{ (date('Y') - $broker->business_since) }} years in Real Estate

@endif

{{ $broker->bio }}

@elseif($active=='listings')

Active Listings ({{ $listings->count() }})

@if(! $listings->isEmpty())
@foreach($listings as $rental)
{{ $rental->address }}, {{ $rental->city }}, {{ $rental->state }} {{ $rental->zipcode }}
{{ $rental->bedroom() }}, {{ $rental->bathroom() }}
${{ number_format($rental->price) }} month
@endforeach
@else

No listings yet.

@endif @elseif($active=='reviews')

Reviews ({{ $reviews->count() }})

@if(! $reviews->isEmpty()) @else

No reviews yet.

@endif @endif @endif
@include('contact.form'); @endsection @section('scripts') {{ HTML::script('/js/plugins/jquery.raty.min.js') }} {{ HTML::script('/js/profile.js') }} @endsection