1 @extends('layouts.simple')
5 <div class="container small">
6 @include('settings.parts.navbar', ['selected' => 'webhooks'])
8 <div class="card content-wrap auto-height">
9 <h1 class="list-heading">{{ trans('settings.webhooks_edit') }}</h1>
12 <div class="setting-list">
13 <div class="grid half">
15 <label class="setting-list-label">{{ trans('settings.webhooks_status') }}</label>
17 {{ trans('settings.webhooks_last_called') }} {{ $webhook->last_called_at ? $webhook->last_called_at->diffForHumans() : trans('common.never') }}
19 {{ trans('settings.webhooks_last_errored') }} {{ $webhook->last_errored_at ? $webhook->last_errored_at->diffForHumans() : trans('common.never') }}
22 <div class="text-muted">
24 @if($webhook->last_error)
25 {{ trans('settings.webhooks_last_error_message') }} <br>
26 <span class="text-warn text-small">{{ $webhook->last_error }}</span>
35 <form action="{{ $webhook->getUrl() }}" method="POST">
37 {!! method_field('PUT') !!}
38 @include('settings.webhooks.parts.form', ['model' => $webhook, 'title' => trans('settings.webhooks_edit')])
40 <div class="form-group text-right">
41 <a href="{{ url("/settings/webhooks") }}" class="button outline">{{ trans('common.cancel') }}</a>
42 <a href="{{ $webhook->getUrl('/delete') }}" class="button outline">{{ trans('settings.webhooks_delete') }}</a>
43 <button type="submit" class="button">{{ trans('settings.webhooks_save') }}</button>
49 @include('settings.webhooks.parts.format-example')