@extends('layouts.account') @section('title', __('Saved searches')) @section('heading', __('Saved searches')) @section('subheading', __('Searches we keep watching for you.')) @section('actions') {{ __('Start a new search') }} @endsection @section('account') @if (session('error')) {{ session('error') }} @endif @if ($searches->isEmpty()) {{ __('Search properties') }} @else
@foreach ($searches as $search)

{{ $search->name }}

{{ $search->summary }}

{{ trans_choice('One match now|:count matches now', $search->match_count, ['count' => $search->match_count]) }} {{ $search->frequencyLabel() }} @if ($search->last_notified_at) {{ __('Last alert :when', ['when' => $search->last_notified_at->diffForHumans()]) }} @endif

{{ $search->wantsAlerts() ? __('Alerts on') : __('Alerts off') }}
{{-- Every alert links here, so turning it off is never more than one screen away from the message that prompted it. --}}
@csrf @method('PUT')
@csrf @method('DELETE')
@endforeach
@if ($remaining <= 3)

{{ trans_choice( 'You can save one more search.|You can save :count more searches.', max(0, $remaining), ['count' => max(0, $remaining)], ) }}

@endif @endif @endsection