-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebhooks.blade.php
141 lines (127 loc) · 7.49 KB
/
webhooks.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@extends(AdminTheme::wrapper(), ['title' => __('admin.webhooks'), 'keywords' => 'WemX Dashboard, WemX Panel'])
@section('css_libraries')
<link rel="stylesheet" href="{{ asset(AdminTheme::assets('modules/summernote/summernote-bs4.css')) }}" />
<link rel="stylesheet" href="{{ asset(AdminTheme::assets('modules/select2/dist/css/select2.min.css')) }}">
@endsection
@section('js_libraries')
<script src="{{ asset(AdminTheme::assets('modules/summernote/summernote-bs4.js')) }}"></script>
<script src="{{ asset(AdminTheme::assets('modules/select2/dist/js/select2.full.min.js')) }}"></script>
@endsection
@section('container')
<div class="row">
<div class="col-12">
<div class="card">
<form action="{{ route('admin.settings.store') }}" method="POST">
<div class="card-header">
<h4>{!! __('admin.webhooks') !!}</h4>
</div>
<div class="card-body">
@csrf
<div class="row">
<div class="form-group col-12">
<label>Webhook URL</label>
<input type="text" name="event_webhook_url" value="@settings('event_webhook_url')" class="form-control">
</div>
<div class="form-group col-6">
<div class="control-label">
Order Created
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_created', true)) /admin/settings/store?webhook_order_created=0 @else /admin/settings/store?webhook_order_created=1 @endif';">
<input type="checkbox" name="webhook_order_created" value="1" class="custom-switch-input"
@if(settings('webhook_order_created', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Deleted
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_deleted', true)) /admin/settings/store?webhook_order_deleted=0 @else /admin/settings/store?webhook_order_deleted=1 @endif';">
<input type="checkbox" name="webhook_order_deleted" value="1" class="custom-switch-input"
@if(settings('webhook_order_deleted', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Cancelled
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_cancelled', true)) /admin/settings/store?webhook_order_cancelled=0 @else /admin/settings/store?webhook_order_cancelled=1 @endif';">
<input type="checkbox" name="webhook_order_cancelled" value="1" class="custom-switch-input"
@if(settings('webhook_order_cancelled', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Renewed
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_renewed', true)) /admin/settings/store?webhook_order_renewed=0 @else /admin/settings/store?webhook_order_renewed=1 @endif';">
<input type="checkbox" name="webhook_order_renewed" value="1" class="custom-switch-input"
@if(settings('webhook_order_renewed', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Suspended
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_suspended', true)) /admin/settings/store?webhook_order_suspended=0 @else /admin/settings/store?webhook_order_suspended=1 @endif';">
<input type="checkbox" name="webhook_order_suspended" value="1" class="custom-switch-input"
@if(settings('webhook_order_suspended', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Unsuspended
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_unsuspended', true)) /admin/settings/store?webhook_order_unsuspended=0 @else /admin/settings/store?webhook_order_unsuspended=1 @endif';">
<input type="checkbox" name="webhook_order_unsuspended" value="1" class="custom-switch-input"
@if(settings('webhook_order_unsuspended', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Terminated
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_terminated', true)) /admin/settings/store?webhook_order_terminated=0 @else /admin/settings/store?webhook_order_terminated=1 @endif';">
<input type="checkbox" name="webhook_order_terminated" value="1" class="custom-switch-input"
@if(settings('webhook_order_terminated', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
<div class="form-group col-6">
<div class="control-label">
Order Upgraded
</div>
<label class="custom-switch mt-2"
onclick="location.href = '@if(settings('webhook_order_upgraded', true)) /admin/settings/store?webhook_order_upgraded=0 @else /admin/settings/store?webhook_order_upgraded=1 @endif';">
<input type="checkbox" name="webhook_order_upgraded" value="1" class="custom-switch-input"
@if(settings('webhook_order_upgraded', true)) checked @endif>
<span class="custom-switch-indicator"></span>
</label>
</div>
</div>
</div>
<div class="card-footer text-right">
<button type="submit" class="btn btn-primary">{!! __('admin.submit') !!}</button>
</div>
</div>
</form>
</div>
</div>
<style>
span.select2.select2-container.select2-container--default {
width: 100% !important;
}
</style>
@endsection