@extends('layouts.popup.small') @section('title') {{ trans('messages.webhook.test') }} @endsection @section('content')
{{ csrf_field() }}
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'endpoint', 'value' => $webhook->endpoint, 'label' => trans('messages.webhook.test.desc'), 'rules' => ['endpoint' => 'required'], 'readonly' => true, ])
@if ($result) @if ($result['status'] == 'error')
{{ $result['message'] }}
@elseif ($result['status'] == 'sent') @php $status = $result['code'] < 200 ? 'info' : ($result['code'] < 300 ? 'success' : ($result['code'] < 400 ? 'info' : ($result['code'] < 600 ? 'danger' : ''))); @endphp
{{ $result['code'] }} {{ $result['message'] }}
@endif @endif
edit {{ trans('messages.edit') }}
@endsection