@extends('layouts.account') @section('title', __('Viewings')) @section('heading', __('Viewings')) @section('subheading', __('Appointments you have asked for, and ones asked of you.')) @section('account') @if (session('error')) {{ session('error') }} @endif @if ($upcoming->isEmpty() && $past->isEmpty()) {{ __('Browse properties') }} @else @if ($upcoming->isNotEmpty())

{{ __('Coming up') }}

@foreach ($upcoming as $appointment) @include('account.partials.appointment', ['appointment' => $appointment, 'user' => $user]) @endforeach
@endif @if ($past->isNotEmpty()) {{-- Kept visible: "did they turn up" is a question people ask afterwards, and a diary that forgets is not a record. --}}

{{ __('Past') }}

@foreach ($past as $appointment) @include('account.partials.appointment', ['appointment' => $appointment, 'user' => $user]) @endforeach
@endif @endif @endsection