@extends('layouts.app', ['title' => __('app.notifiers').' — BloomFeed']) @section('content')
@if (session('status'))
{{ session('status') }}
@endif

{{ __('app.notifiers') }}

{{ __('app.notifiers_lede') }}

{{ __('app.new_notifier') }}

@if ($errors->any())
{{ $errors->first() }}
@endif
@csrf

{{ __('app.your_notifiers') }}

@forelse ($notifiers as $notifier)
{{ $notifier->type === 'discord' ? 'Discord' : __('app.generic_webhook') }} {{ $notifier->name }} @unless ($notifier->enabled) ({{ __('app.disabled') }}) @endunless
@csrf
@csrf
@csrf @method('DELETE')

{{ $notifier->scope === 'all' ? __('app.scope_all') : __('app.scope_feeds_list', ['feeds' => $notifier->feeds->map->displayTitle()->join(', ') ?: __('app.no_feeds_selected')]) }} @if ($notifier->last_triggered_at) · {{ __('app.last_triggered', ['time' => $notifier->last_triggered_at->diffForHumans()]) }} @endif @if ($notifier->last_error) · {{ $notifier->last_error }} @endif

{{ __('app.edit') }}
@csrf @method('PUT')
scope !== 'feeds') hidden @endif> @php($subscribed = $notifier->feeds->pluck('id')->all()) @foreach ($feeds as $feed) @endforeach
@empty
{{ __('app.no_notifiers_yet') }}
@endforelse
@endsection