@extends('admin.layouts.app') @section('title', __('webhooks.title')) @section('header', __('webhooks.title')) @section('breadcrumb') Admin / {{ __('webhooks.title') }} @endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif {{-- Header row --}}

{{ __('webhooks.subtitle') }}

{{-- Webhook list --}} @forelse($webhooks as $wh) @php $last = $wh->lastDelivery(); @endphp
{{ $wh->name }} @if($wh->is_active) {{ __('webhooks.active') }} @else {{ __('webhooks.inactive') }} @endif @if($last) @if($last->isSuccess()) ✓ {{ __('webhooks.last_ok') }} @else ✗ {{ __('webhooks.last_failed') }} @endif @endif
{{ $wh->url }}
@foreach($wh->events as $ev) {{ $ev }} @endforeach
{{ __('webhooks.deliveries_btn') }} {{ $wh->deliveries_count }}
@csrf @method('PATCH')
@csrf @method('DELETE')
@empty

{{ __('webhooks.empty') }}

@endforelse {{-- CREATE MODAL --}} {{-- EDIT MODAL --}} @push('scripts') @endpush @endsection