@extends('admin.layouts.app') @section('title', __('webhooks.deliveries_title')) @section('header', $webhook->name . ' — ' . __('webhooks.deliveries_title')) @section('breadcrumb') {{ __('webhooks.title') }} / {{ $webhook->name }} @endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
@forelse($deliveries as $d) @if($d->response_body && $d->isFailed()) @endif @empty @endforelse
{{ __('webhooks.col_event') }} {{ __('webhooks.col_status') }} {{ __('webhooks.col_code') }} {{ __('webhooks.col_attempt') }} {{ __('webhooks.col_date') }}
{{ $d->event_type }} @if($d->isSuccess()) ✓ {{ __('webhooks.status_success') }} @elseif($d->isFailed()) ✗ {{ __('webhooks.status_failed') }} @else {{ __('webhooks.status_pending') }} @endif {{ $d->response_code ?? '—' }} {{ $d->attempt_count }} {{ $d->created_at?->format('Y-m-d H:i:s') }} @if($d->isFailed())
@csrf
@endif
{{ Str::limit($d->response_body, 300) }}
{{ __('webhooks.no_deliveries') }}
@if($deliveries->hasPages())
{{ $deliveries->links() }}
@endif @endsection