3
0
Fork 0

Redesign + Fixes

This commit is contained in:
thomas 2021-06-29 22:05:00 +02:00
parent 7718ed6c32
commit 7fe8056e35
67 changed files with 1898 additions and 2799 deletions

View file

@ -0,0 +1,41 @@
@extends('layouts.admin')
@section('page', 'CSS')
@section('content')
<div class="container-fluid">
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2 col-xs-12">
<div class="box box-success">
<div class="box-header">
<h4>Edit CSS</h4>
</div>
<div class="box-body">
<form method="post" action="{{ route('panel.css') }}">
@csrf
@foreach($styles as $key => $value)
<div class="form-group @error($key) has-error @enderror">
<label for="email" class="text-md-right">{{ __(ucfirst($key).':') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="fas fa-tag"></i></span>
<input id="{{ $key }}" type="text" class="form-control" placeholder="{{ $value }}" name="{{ $key }}" value="{{ $value }}" required autocomplete="off" autofocus>
</div>
@error($key)
<span class="help-block">{{ $message }}</span>
@enderror
</div>
@endforeach
<button type="submit" class="btn btn-primary">Change</button>
<a href="{{ route('panel.css.reset') }}" class="btn btn-primary" style="float: right">Reset</a>
</form>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{{ asset('assets/js/operator.js') }}"></script>
@endsection

View file

@ -53,16 +53,18 @@
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-green-gradient">
<div class="inner">
<h3>{{ $shows }}</h3>
<p>Show{{ $shows != 1 ? 's' : '' }}</p>
</div>
<div class="icon">
<i class="fas fa-theater-masks"></i>
@if(env('SHOWS', false))
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-green-gradient">
<div class="inner">
<h3>{{ $shows }}</h3>
<p>Show{{ $shows != 1 ? 's' : '' }}</p>
</div>
<div class="icon">
<i class="fas fa-theater-masks"></i>
</div>
</div>
</div>
</div>
@endif
</div>
@endsection

View file

@ -12,17 +12,14 @@
<div class="col-lg-12 col-md-8col-xs-12 col-sm-12">
@php($message = \App\Message::orderByDesc('id')->first())
@if(!empty($message))
<div class="panel panel-theme news">
<div class="panel-heading">
@php($time = strtotime($message->created_at))
<h3 class="panel-title">{{ \App\Cache\Cache::getUsername($message->uuid) }}<span style="float: right">{{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}</span></h3>
</div>
<div class="panel-body">
<div class="container-fluid">
@component('components.panel')
@slot('title')
@php($time = strtotime($message->created_at))
{{ \App\Cache\Cache::getUsername($message->uuid) }}<span style="float: right">{{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}</span>
@endslot
{!! $message->content !!}
</div>
</div>
</div>
@endcomponent
@endif
</div>

View file

@ -0,0 +1,88 @@
@extends('layouts.admin')
@section('page', 'Operator')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="box box-success">
<div class="box-header">
<h4 class="box-title text-center">Ride Operator Configurator</h4>
<i id="sync" class="fas fa-external-link-alt sync"></i>
</div>
<div class="box-body">
<form id="operator-form" class="col-12">
<div class="input-group mb-3">
<span class="input-group-addon"><i class="fas fa-tag"></i></span>
<input type="text" class="form-control" name="id" placeholder="ID">
</div>
<div class="settings">
<div class="settings-toggle mb-3">
<label class="switcher">
<input id="template_toggle" name="template_toggle" type="checkbox" checked>
<span class="switcher-slider"></span>
</label>
</div>
<div class="settings-text mb-3">
<p>Use Template</p>
</div>
</div>
<div class="settings" style="display: none">
<div class="settings-toggle mb-3">
<label class="switcher">
<input id="is_template" name="is_template" type="checkbox">
<span class="switcher-slider"></span>
</label>
</div>
<div class="settings-text mb-3">
<p>Is Template</p>
</div>
</div>
<div id="template" class="input-group mb-3">
<span class="input-group-addon"><i class="fas fa-tag"></i></span>
<input type="text" class="form-control" name="template" placeholder="Template">
</div>
<div id="permission" class="input-group mb-3" style="display: none">
<span class="input-group-addon"><i class="fas fa-lock"></i></span>
<input type="text" class="form-control" name="permission" placeholder="Permission">
</div>
<div id="start_command" class="input-group mb-3" style="display: none">
<span class="input-group-addon"><i class="fas fa-terminal"></i></span>
<input type="text" class="form-control" name="start_command" placeholder="Start Command">
</div>
<div id="stop_command" class="input-group mb-3" style="display: none">
<span class="input-group-addon"><i class="fas fa-terminal"></i></span>
<input type="text" class="form-control" name="stop_command" placeholder="Stop Command">
</div>
<h3>Items <a class="btn btn-primary">Add Item</a></h3>
<div id="items">
</div>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="box box-success">
<div class="box-header">
<h4 class="box-title text-center">Output</h4>
</div>
<div class="box-body">
<span><strong>File Name:</strong> <span id="file_name">panel_id.json</span></span>
<pre id="output">Output goes here</pre>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{{ asset('assets/js/operator.js') }}"></script>
@endsection