@extends('layouts.account') @section('title', __('My account')) @section('heading', __('Overview')) @section('subheading', __('Everything you have saved, sent and listed.')) @section('account') {{-- The panels below are placeholders for the phases that own them. Each one states plainly what it will hold rather than showing a fake zero, so a reviewer can tell an unbuilt screen from an empty one. --}} {{-- A panel with a route behind it links; one without says plainly what it will hold, so a reviewer can tell an unbuilt screen from an empty one. --}}
@foreach ([ ['icon' => 'bookmark', 'title' => __('Saved properties'), 'body' => __('Listings you shortlist appear here.'), 'route' => 'account.favourites.index', 'count' => $favouriteCount], ['icon' => 'search', 'title' => __('Saved searches'), 'body' => __('We tell you when something new matches.'), 'route' => 'account.saved-searches.index', 'count' => $savedSearchCount], ['icon' => 'inbox', 'title' => __('Messages'), 'body' => __('Your conversations with sellers and agents.'), 'route' => 'account.messages.index', 'count' => $unreadMessages], ['icon' => 'calendar', 'title' => __('Viewings'), 'body' => __('Appointments you have requested or agreed.'), 'route' => 'account.appointments.index', 'count' => $upcomingAppointments], ] as $panel) @php($href = isset($panel['route']) && Route::has($panel['route']) ? route($panel['route']) : null) $href, 'cursor-default' => ! $href, ])>

{{ $panel['title'] }} @isset($panel['count']) {{ $panel['count'] }} @endisset

{{ $panel['body'] }}

@endforeach
@if ($sellerProfile)

{{ __('Selling') }}

{{ __('Listing under :name.', ['name' => $sellerProfile->display_name]) }} {{ $sellerProfile->type->label() }}

{{ $sellerProfile->verification_status->label() }}
@foreach ([ [__('Live listings'), $sellerProfile->listing_count], [__('Reviews'), $sellerProfile->rating_count], [__('Rating'), $sellerProfile->rating_count ? number_format((float) $sellerProfile->rating_average, 1) : '—'], ] as [$label, $value])
{{ $label }}
{{ $value }}
@endforeach
@else

{{ __('Have something to sell or rent out?') }}

{{ __('Open a seller profile to list properties, take enquiries and arrange viewings. Your buying side stays exactly as it is.') }}

{{ __('Become a seller') }}
@endif @endsection