@extends('layouts.app') @section('title', 'Webhook Details') @section('content')

{{ $webhook->name }}

{{ ucfirst($webhook->type) }} webhook source

Edit
@csrf

Status

@if($webhook->is_active) Active @else Inactive @endif

Total Requests

{{ $webhook->webhook_logs_count ?? 0 }}

Successful

{{ $webhook->success_count ?? 0 }}

Failed

{{ $webhook->failed_count ?? 0 }}

Webhook Configuration

Configure this URL in your payment platform's webhook settings

Visit this URL to test if the webhook is accessible

@if($webhook->secret_key)
@endif
@csrf

Generate a new webhook URL. This will invalidate the current URL.

Recent Webhook Requests

Last 50 webhook requests received

@if($recentLogs->count() > 0)
@foreach($recentLogs as $log) @endforeach
Time Event Type Status Order IP Address Details
{{ $log->created_at->format('M d, H:i:s') }}
{{ $log->created_at->diffForHumans() }}
{{ $log->event_type ?? 'unknown' }} @if($log->status === 'success') Success @elseif($log->status === 'failed') Failed @elseif($log->status === 'ignored') Ignored @else {{ ucfirst($log->status) }} @endif @if($log->order) {{ $log->order->order_number }} @else - @endif {{ $log->ip_address ?? '-' }}
@else

No webhook requests received yet

Configure the webhook URL in your payment platform to start receiving orders

@endif
@endsection