-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding discord settings to admin panel
- Loading branch information
root
committed
Jun 23, 2018
1 parent
9468745
commit 26178f6
Showing
15 changed files
with
181 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
resources/views/admin/pages/settings/discord/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@extends('admin.layout') | ||
|
||
@section('title') | ||
Discord | ||
@endsection | ||
|
||
@section('desc') | ||
Eye, Nice to see you want to use our discord intergration | ||
@endsection | ||
|
||
@section('content') | ||
<div class="col-md-8"> | ||
<div class="box box-info"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Discord | ||
|
||
</h3> | ||
</div> | ||
<!-- /.box-header --> | ||
<form action="{{route('admin.settings.discord')}}" method="POST"> | ||
{{csrf_field()}} | ||
<div class="box-body pad"> | ||
|
||
|
||
<div class="checkbox icheck"> | ||
<label> | ||
<input type="checkbox" @if(Setting::get('DISCORD_LOGIN_ENABLED', false)) checked @endif name="admin_enabled" value="admin_enabled"> Admin Login Notifications | ||
</label> | ||
</div> | ||
<div class="checkbox icheck"> | ||
<label> | ||
<input @if(Setting::get('DISCORD_ORDER_ENABLED', false)) checked @endif type="checkbox" name="order_enabled" value="order_enabled"> Order Notifications | ||
</label> | ||
</div> | ||
<br> | ||
<label for="adminlink">Admin Login Notificatoins</label> | ||
<input class="form-control" required id="adminlink" type="text" name="admin_link" value="{{\Setting::get('DISCORD_LOGIN_WEBHOOK')}}"/> | ||
<label for="adminlink">Order Notificatoins</label> | ||
|
||
<input class="form-control" required id="orderlink" type="text" name="order_link" value="{{\Setting::get('DISCORD_ORDER_WEBHOOK')}}"/> | ||
|
||
</div> | ||
<div class="box-footer"> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
</div> | ||
</form> | ||
</div> | ||
<!-- /.box --> | ||
</div> | ||
|
||
|
||
<div class="col-md-4"> | ||
<div class="box box-success"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Test webhooks | ||
</h3> | ||
</div> | ||
<!-- /.box-header --> | ||
<form action="{{route('admin.settings.discord.test')}}" method="POST"> | ||
{{csrf_field()}} | ||
<div class="box-body pad"> | ||
This test process will attempt to send messages to both the webhooks | ||
</div> | ||
<div class="box-footer"> | ||
<button type="submit" class="btn btn-primary">Lets Go!</button> | ||
</div> | ||
</form> | ||
</div> | ||
<!-- /.box --> | ||
</div> | ||
@endsection | ||
|
||
@section('head') | ||
<link rel="stylesheet" href="/admin/plugins/iCheck/square/blue.css"> | ||
@endsection | ||
@section('extra') | ||
<script src="/admin/plugins/iCheck/icheck.min.js"></script> | ||
<script> | ||
$(function () { | ||
$('input').iCheck({ | ||
checkboxClass: 'icheckbox_square-blue', | ||
radioClass: 'iradio_square-blue', | ||
increaseArea: '20%' /* optional */ | ||
}); | ||
}); | ||
</script> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"theme":"buycraft","admin":{"url":"admin"},"home_title":"MinePoS","home_desc":"<p>Demo MinePoS Store :)<\/p>","pterodactyl_link":"https:\/\/pterodactyl.minepos.net\/api\/","pterodactyl_key":"80qqDg8mdN3x3sqOdybDxwq7QpLOld1TY4zwxKMX7sFx0hNe","pterodactyl_appkey":"f5sUq0FcHL4NxlhbEsRRlZXhdThNecF9MBTVIKXXpeXBlrg7","PayPalSecret":"EAt5VBV3ae789prQ2xtltU6F17sQVPaXljXTHPOlHB8WLvQuKsAGWlcwhWiNE70ggXe-xCn9IqCe0tWN","PayPalClientID":"AWQMJBcuVcbMwVTYilN_fpB9M6cNxFZ7U5T0J-ATrfDbUrRkeVDP45iEYoxnpn-Hw9F_ALewAwrxkq0e","paypal_email":"[email protected]"} | ||
{"theme":"buycraft","admin":{"url":"admin"},"home_title":"MinePoS","home_desc":"<p>Demo MinePoS Store :)<\/p>","pterodactyl_link":"https:\/\/pterodactyl.minepos.net\/api\/","pterodactyl_key":"YPxmLf1k5a6v1LcLClvIkHeoaCvYKcm1donvgWDhq71gJlWb","pterodactyl_appkey":"r8JzVF4JKJj2GaM94snLNhMSq1YrRi89WIJVCnAyxq8jV6JK","PayPalSecret":"EAt5VBV3ae789prQ2xtltU6F17sQVPaXljXTHPOlHB8WLvQuKsAGWlcwhWiNE70ggXe-xCn9IqCe0tWN","PayPalClientID":"AWQMJBcuVcbMwVTYilN_fpB9M6cNxFZ7U5T0J-ATrfDbUrRkeVDP45iEYoxnpn-Hw9F_ALewAwrxkq0e","paypal_email":"[email protected]","DISCORD_LOGIN_WEBHOOK":"https:\/\/discordapp.com\/api\/webhooks\/414863378188599314\/ooz3EkkWBWUHRz2YtAll1IafYgeAFSF31uc1IO6FPuJhjeVH8JiNTvbrT-URgdD-18WJ","DISCORD_ORDER_WEBHOOK":"https:\/\/discordapp.com\/api\/webhooks\/423094221914767370\/FNvJAzz6u4ra8UUgx3II-p2drhH-ADOZp0fbRgDwkXR0zCluU_1wG47US9P3z0anxvVO","DISCORD_LOGIN_ENABLED":true,"DISCORD_ORDER_ENABLED":true} |