@extends('compte.layout') @php use App\Support\Content; use App\Support\Taxonomy; @endphp @section('compte')

Créer une alerte

@csrf
@error('label'){{ $message }}@enderror
@foreach(Content::villes() as [$v, $c])@endforeach
@error('max'){{ $message }}@enderror

Mes alertes ({{ $alertes->count() }})

@forelse($alertes as $alerte)
{{ $alerte->label }}

{{ ucfirst($alerte->rubrique) }} @if($alerte->q) · « {{ $alerte->q }} »@endif @if($alerte->ville) · {{ $alerte->ville }}@endif @if($alerte->min || $alerte->max) · {{ $alerte->min ? number_format($alerte->min / 100, 0, ',', ' ').' €' : '0 €' }} – {{ $alerte->max ? number_format($alerte->max / 100, 0, ',', ' ').' €' : '∞' }} @endif · {{ ucfirst($alerte->frequency) }}

@if(($nouveautes[$alerte->id] ?? 0) > 0) {{ $nouveautes[$alerte->id] }} nouvelles @else Voir @endif
@csrf @method('put')
@csrf @method('delete')
@empty

Aucune alerte pour l'instant.

@endforelse
@endsection