master
parent
6e34daccc5
commit
d8a7b147a8
|
@ -1,50 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
@section('content')
|
||||
|
||||
<div class="admin-header">
|
||||
<div class="admin-header" style="margin-bottom:0px !important;">
|
||||
<div class="container">
|
||||
<h1><i class="fal fa-user"></i> Account</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<div class="container">
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div><br />
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 offset-md-3">
|
||||
<form action="{{route('dashboard.account')}}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputEmail">E-mail</label>
|
||||
<input type="email" class="form-control" id="exampleFormControlInputEmail" value="{{ $user->email }}" placeholder="E-mail" name='email' required="required">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputPassword">New Password</label>
|
||||
<input type="password" class="form-control" id="exampleFormControlInputPassword" placeholder="Password" name='password'>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary float-left" style="margin-top:10px;">
|
||||
<i class="fal fa-save"></i>
|
||||
Save
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,616 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="admin-header">
|
||||
<div class="admin-header" style="margin-bottom:0px !important;">
|
||||
<div class="container">
|
||||
<h1><i class="fal fa-plus"></i> {{ __('admin-content.create-new-' . $type_id) }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<div class="modal fade" id="addAction" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form method="post" onsubmit="addAction();" id="add-action">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Create new action</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="type">Action type</label>
|
||||
<select class="form-control" id="type" onchange="changeTypeAction()" name="type" required="required">
|
||||
<option value="1">Webhook</option>
|
||||
<option value="2">E-mail</option>
|
||||
<option value="3">Donation</option>
|
||||
<option value="4">Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_name">Action name</label><input type="text" required="required" class="form-control" id="action_name" placeholder="Action name" name="action_name"></div>
|
||||
<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="action_description" placeholder="Action description" name="action_description"></div>
|
||||
<div class="form-group"><label for="action_icon">Action icon</label><input type="text" required="required" class="form-control" id="action_icon" placeholder="Action icon" name="action_icon"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="action_color">Action color</label>
|
||||
<select class="form-control" id="action_color" name="action_color" required="required">
|
||||
<option value="primary">Primary</option>
|
||||
<option value="secondary">Secondary</option>
|
||||
<option value="success">Success</option>
|
||||
<option value="danger">Danger</option>
|
||||
<option value="warning">Warning</option>
|
||||
<option value="info">Info</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_amount">Action amount</label><input type="number" required="required" class="form-control" id="action_amount" placeholder="Action amount" name="action_amount"></div>
|
||||
<div class="form-group"><label for="action_target">Action target url</label><input type="url" required="required" class="form-control" id="action_target" placeholder="Action target url" name="action_webhook"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="editAction" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form method="post" onsubmit="editAction();" id="edit-action">
|
||||
<input type="hidden" name="pos" value="" />
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Edit action</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="type">Action type</label>
|
||||
<select class="form-control" onchange="changeTypeActionEdit()" id="editType" name="type" required="required">
|
||||
<option value="1">Webhook</option>
|
||||
<option value="2">E-mail</option>
|
||||
<option value="3">Donation</option>
|
||||
<option value="4">Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_name">Action name</label><input type="text" required="required" class="form-control" id="edit_action_name" placeholder="Action name" name="action_name"></div>
|
||||
<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="edit_action_description" placeholder="Action description" name="action_description"></div>
|
||||
<div class="form-group"><label for="action_icon">Action icon</label><input type="text" required="required" class="form-control" id="edit_action_icon" placeholder="Action icon" name="action_icon"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="action_color">Action color</label>
|
||||
<select class="form-control" id="edit_action_color" name="action_color" required="required">
|
||||
<option value="primary">Primary</option>
|
||||
<option value="secondary">Secondary</option>
|
||||
<option value="success">Success</option>
|
||||
<option value="danger">Danger</option>
|
||||
<option value="warning">Warning</option>
|
||||
<option value="info">Info</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_amount">Action amount</label><input type="number" required="required" class="form-control" id="edit_action_amount" placeholder="Action amount" name="action_amount"></div>
|
||||
<div class="form-group"><label for="edit_action_target">Action target url</label><input type="url" required="required" class="form-control" id="edit_action_target" placeholder="Action target url" name="action_webhook"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form action="{{route('dashboard.AddNachrichten')}}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" id="nach_id" required="required" value="", name="nach_id">
|
||||
<input type="hidden" name="type_id" value="{{ $type_id }}" />
|
||||
<!--<h5 style="margin-bottom:20px;"><i class="fal fa-caret-circle-down"></i> {{ __('admin-content.select-type') }}</h5>
|
||||
|
||||
<div class="form-group" style="margin-bottom:30px;">
|
||||
<select class="form-control" id="type_id" name="type_id" required="required" onchange="changeType(this.value)">
|
||||
<option value="">Wählen Sie eine Option</option>
|
||||
@foreach ($types as $type)
|
||||
<option value="{{ $type->id }}" {{ $type->id == 1 ? 'selected' : '' }}>{{ $type->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<hr>-->
|
||||
|
||||
<h5 style="margin-top:20px;margin-bottom:20px;"><i class="fal fa-newspaper"></i> {{ __('admin-content.content-news') }}</h5>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-4">
|
||||
|
||||
<a style="cursor:pointer;" class="img-content" onclick="clickImgContent();">
|
||||
<div class="upload-img ci-color bg-ci" style="border: 1px solid; width: 100% ; height: 100%; opacity: 0.1;">
|
||||
<i class="fal fa-upload"></i>
|
||||
<br>
|
||||
<h5 class="text-center" style="color: #6f42c1">Bild hochladen</h5>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<div class="form-group" style="display: none;">
|
||||
<input type="file" id="exampleFormControlInputImage" name="image" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-7 offset-1">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInput1">{{ __('admin-content.content-title') }}</label>
|
||||
<input type="text" class="form-control" id="title" placeholder="{{ __('admin-content.content-title') }}" name="title" required="required">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="category_id">{{ __('admin-content.category') }}</label>
|
||||
|
||||
@if (auth()->user()->role->id > 2 and !empty(auth()->user()->category))
|
||||
<input type="text" class="form-control" value="{{ auth()->user()->category->name }}" id="category_id" readonly="readonly">
|
||||
<input type="hidden" name="category_id" value="{{ auth()->user()->default_category_id }}" />
|
||||
@else
|
||||
<select class="form-control" id="category_id" name="category_id" required="required">
|
||||
<option value="">{{ __('admin-content.select-category') }}</option>
|
||||
@foreach ($categories as $category)
|
||||
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if (config('settings.lnd_status'))
|
||||
<h6 class="ci-color"><i class="fal fa-gem"></i> Define as Premium Content</h6>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 55px;margin-top:15px;">
|
||||
<div class="custom-control custom-switch float-left">
|
||||
<input type="checkbox" disabled name="paid" class="custom-control-input" id="paid" value="1">
|
||||
<label class="custom-control-label" for="paid">Ja</label>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="form-amount"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="form-group">
|
||||
<label for="category">Category</label>
|
||||
<select class="form-control" id="category" name="category" required="required" onchange="category_change(this.value, 1)">
|
||||
<option value="news">News</option>
|
||||
<option value="angebote">Angebote</option>
|
||||
</select>
|
||||
</div>-->
|
||||
|
||||
<div id="additional_fields_create">
|
||||
@if ($type_id == 2)
|
||||
<div class="form-group"><label for="workplace">Arbeitsort</label><input type="text" class="form-control" id="workplace" placeholder="Arbeitsort" name="additional_fields[workplace]"></div>
|
||||
<div class="form-group"><label for="contact_info">Kontaktdaten</label><textarea class="form-control" id="contact_info" name="additional_fields[contact_info]" rows="3" placeholder="Kontaktdaten"></textarea></div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($type_id == 3)
|
||||
<div id="action" style="margin-top:10px;">
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
<h5 style="margin-top:20px;margin-bottom:20px;"><i class="fal fa-play-circle"></i> Action Buttons <a href="" data-toggle="modal" data-target="#addAction" class="float-right"><i class="fal fa-plus"></i> Create new Action</a></h5>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-borderless table-actions">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Preview Button</th>
|
||||
<th scope="col">Action Type</th>
|
||||
<th scope="col">Action Target</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom:30px;">
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" name="show_total_paid_action" value="1" id="show_total_paid_action">
|
||||
<label class="custom-control-label" for="show_total_paid_action">Display already paid amount to User</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1">
|
||||
<label class="custom-control-label" for="customSwitch1">Actions to behave as switch</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<br>
|
||||
|
||||
<div class="form-group">
|
||||
<h5> {{ __('admin-content.content-text') }}</h5>
|
||||
</div>
|
||||
<textarea class="form-control" id="nachrichten_2" rows="3" placeholder="Nachrichten Text" name="nachrichten" required="required"></textarea>
|
||||
<br>
|
||||
|
||||
<label for="exampleFormControlTextarea1">{{ __('admin-content.content-files') }}</label>
|
||||
<br>
|
||||
|
||||
<div class="col-md-6" style="margin-bottom:20px;">
|
||||
<input type="file" class="form-control" id="images" name="files[]" onchange="preview_images();" multiple/>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-top:20px;">
|
||||
<div class="custom-control custom-switch float-left" style="display: block;">
|
||||
<input type="checkbox" name="publish" onchange="changePublish(this);" class="custom-control-input" id="publish" value="1">
|
||||
<label class="custom-control-label" for="publish">Schedule publication</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-publish" style="display: none;margin-top:60px">
|
||||
<div class="form-group">
|
||||
<label for="publish_at">{{ __('admin-content.content-publish') }}</label>
|
||||
<input type="date" class="form-control" id="publish_at" placeholder="{{ __('admin-content.content-publish') }}" name="publish_at">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary float-right">
|
||||
<i class="fal fa-save"></i>
|
||||
Beitrag veröffentlihcen
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script src="https://cdn.tiny.cloud/1/0015awrvvurgnwz3e0uid83chhzb7lnbi6wyn4ukk7b4lh9k/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
||||
<script src="{{ asset('system/js/tiny-de.js') }}"></script>
|
||||
|
||||
|
||||
<script>
|
||||
function clickImgContent()
|
||||
{
|
||||
document.getElementById('exampleFormControlInputImage').click();
|
||||
}
|
||||
|
||||
document.getElementById('exampleFormControlInputImage').addEventListener('change', readURL, true);
|
||||
|
||||
function readURL(){
|
||||
var file = document.getElementById("exampleFormControlInputImage").files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = function(){
|
||||
document.getElementById('img-content-fluid').setAttribute("src", reader.result);
|
||||
//document.getElementById('clock').style.backgroundImage = "url(" + reader.result + ")";
|
||||
}
|
||||
if(file){
|
||||
reader.readAsDataURL(file);
|
||||
}else{
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(e.target).closest(".tox").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function changeTypeAction()
|
||||
{
|
||||
var value = $('#type').val();
|
||||
|
||||
if (value == 1) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 2) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target email');
|
||||
$('#action_target').css('display', 'block').attr('type', 'email').attr('placeholder', 'Action target email').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 4) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 3) {
|
||||
$('[for="action_target"]').css('display', 'none');
|
||||
$('#action_target').css('display', 'none').removeAttr('required');
|
||||
}
|
||||
}
|
||||
|
||||
function changeTypeActionEdit()
|
||||
{
|
||||
var value = $('#editType').val();
|
||||
|
||||
if (value == 1) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 2) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target email');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'email').attr('placeholder', 'Action target email').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 4) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 3) {
|
||||
$('[for="edit_action_target"]').css('display', 'none');
|
||||
$('#edit_action_target').css('display', 'none').removeAttr('required');
|
||||
}
|
||||
}
|
||||
|
||||
function addAction()
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
var pos = $('.table-actions tbody tr:last').attr('id');
|
||||
|
||||
if (!pos) {
|
||||
var pos = 1;
|
||||
} else {
|
||||
var pos = parseInt(pos) + 1;
|
||||
}
|
||||
|
||||
if (!$('#action_target').val()) {
|
||||
target = '';
|
||||
} else {
|
||||
target = $('#action_target').val();
|
||||
}
|
||||
|
||||
var html_content = '<tr id="'+pos+'">';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][icon]" value="'+$('#action_icon').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][color]" value="'+$('#action_color').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][amount]" value="'+$('#action_amount').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][name]" value="'+$('#action_name').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][description]" value="'+$('#action_description').val()+'"/>';
|
||||
|
||||
html_content += '<td><a class="btn btn-'+$('#action_color').val()+'" style="color:white"> <i class="fal fa-'+$('#action_icon').val()+'"></i> '+$('#action_name').val()+' for '+$('#action_amount').val()+' sats</a></td>';
|
||||
|
||||
html_content += '<td>'+$( "#type option:selected" ).text()+'<input type="hidden" name="action['+pos+'][type]" value="'+$('#type').val()+'"/></td>';
|
||||
html_content += '<td>'+target+'<input type="hidden" name="action['+pos+'][target]" value="'+target+'"/></td>';
|
||||
html_content += '<td class="float-right"><a href="" onclick="openEditAction('+pos+')" data-id="'+pos+'"><i class="fal fa-edit"></i></a> | <a href="" onclick="removeAction('+pos+')" data-id="'+pos+'"><i class="fad fa-trash" style="color: red;cursor:pointer;"></i></a></td>';
|
||||
html_content += '</tr>';
|
||||
|
||||
$('.table-actions tbody').append(html_content);
|
||||
|
||||
$('#add-action')[0].reset();
|
||||
|
||||
$('.modal').modal('hide');
|
||||
}
|
||||
|
||||
function removeAction(id)
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
$('#' + id).remove();
|
||||
}
|
||||
|
||||
function openEditAction(id)
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
$('[name="pos"]').val(id);
|
||||
|
||||
$('#editType').val($('[name="action['+id+'][type]"]').val());
|
||||
$('#edit_action_name').val($('[name="action['+id+'][name]"]').val());
|
||||
$('#edit_action_description').val($('[name="action['+id+'][description]"]').val());
|
||||
$('#edit_action_icon').val($('[name="action['+id+'][icon]"]').val());
|
||||
$('#edit_action_color').val($('[name="action['+id+'][color]"]').val());
|
||||
$('#edit_action_amount').val($('[name="action['+id+'][amount]"]').val());
|
||||
$('#edit_action_target').val($('[name="action['+id+'][target]"]').val());
|
||||
|
||||
changeTypeActionEdit();
|
||||
|
||||
$('#editAction').modal('toggle');
|
||||
}
|
||||
|
||||
function editAction()
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
var pos = $('[name="pos"]').val();
|
||||
|
||||
if (!$('#edit_action_target').val()) {
|
||||
target = '';
|
||||
} else {
|
||||
target = $('#edit_action_target').val();
|
||||
}
|
||||
|
||||
var html_content = '<tr id="'+pos+'">';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][icon]" value="'+$('#edit_action_icon').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][color]" value="'+$('#edit_action_color').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][amount]" value="'+$('#edit_action_amount').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][name]" value="'+$('#edit_action_name').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][description]" value="'+$('#edit_action_description').val()+'"/>';
|
||||
|
||||
html_content += '<td><a class="btn btn-'+$('#edit_action_color').val()+'" style="color:white"> <i class="fal fa-'+$('#edit_action_icon').val()+'"></i> '+$('#edit_action_name').val()+' for '+$('#edit_action_amount').val()+' sats</a></td>';
|
||||
|
||||
html_content += '<td>'+$( "#editType option:selected" ).text()+'<input type="hidden" name="action['+pos+'][type]" value="'+$('#editType').val()+'"/></td>';
|
||||
html_content += '<td>'+target+'<input type="hidden" name="action['+pos+'][target]" value="'+target+'"/></td>';
|
||||
html_content += '<td class="float-right"><a href="" onclick="openEditAction('+pos+')" data-id="'+pos+'"><i class="fal fa-edit"></i></a> | <a href="" onclick="removeAction('+pos+')" data-id="'+pos+'"><i class="fad fa-trash" style="color: red;cursor:pointer;"></i></a></td>';
|
||||
html_content += '</tr>';
|
||||
|
||||
$('#' + pos).remove();
|
||||
$('.table-actions tbody').append(html_content);
|
||||
|
||||
$('#edit-action')[0].reset();
|
||||
|
||||
$('.modal').modal('hide');
|
||||
}
|
||||
|
||||
function changePaid(event)
|
||||
{
|
||||
if ($("#paid").prop("checked")) {
|
||||
var data_html = '<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" class="form-control" id="paidAmount" value="1000" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required" min="1" step="1"></div>';
|
||||
data_html += '<div class="form-group"><label for="premium_until">Premium Until</label><input type="date" class="form-control" id="premium_until" placeholder="Premium Until" name="premium_until"></div>';
|
||||
|
||||
$('.form-amount').html(data_html);
|
||||
} else {
|
||||
$('.form-amount').empty();
|
||||
}
|
||||
}
|
||||
|
||||
function changePublish(event) {
|
||||
if ($("#publish").prop("checked")) {
|
||||
$('.box-publish').css('display', 'block');
|
||||
$('#publish_at').attr('required', 'required');
|
||||
} else {
|
||||
$('.box-publish').css('display', 'none');
|
||||
$('#publish_at').removeAttr('required');
|
||||
}
|
||||
}
|
||||
|
||||
function changePaid2(event)
|
||||
{
|
||||
if (event.value == 1) {
|
||||
var data_html = '<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" class="form-control" id="paidAmount" value="1000" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required"></div>';
|
||||
data_html += '<div class="form-group"><label for="premium_until">Premium Until</label><input type="date" class="form-control" id="premium_until" placeholder="Premium Until" name="premium_until"></div>';
|
||||
|
||||
$('.form-amount2').html(data_html);
|
||||
} else {
|
||||
$('.form-amount2').empty();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function changeType(event) {
|
||||
var type = event;
|
||||
|
||||
$('#additional_fields_create').empty();
|
||||
$('#action').css('display', 'none');
|
||||
|
||||
if (type == 2) {
|
||||
var data_html_type = '<div class="form-group"><label for="workplace">Arbeitsort</label><input type="text" class="form-control" id="workplace" placeholder="Arbeitsort" name="additional_fields[workplace]"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="contact_info">Kontaktdaten</label><textarea class="form-control" id="contact_info" name="additional_fields[contact_info]" rows="3" placeholder="Kontaktdaten"></textarea></div>';
|
||||
|
||||
$('#additional_fields_create').html(data_html_type);
|
||||
}
|
||||
|
||||
if (type == 3) {
|
||||
/*var data_html_type = '<div class="form-group"><label for="action_name">Action name</label><input type="text" class="form-control" id="action_name" placeholder="Action name" name="action_name"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="action_description" placeholder="Action description" name="action_description"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_icon">Action icon</label><input type="text" class="form-control" id="action_icon" placeholder="Action icon" name="action_icon"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_amount">Action amount</label><input type="number" class="form-control" id="action_amount" placeholder="Action amount" name="action_amount"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_webhook">Action URL Webhook</label><input type="text" class="form-control" id="action_webhook" placeholder="Action URL Webhook" name="action_webhook"></div>';
|
||||
|
||||
$('#additional_fields_create').html(data_html_type);*/
|
||||
|
||||
$('#action').css('display', 'block');
|
||||
}
|
||||
}
|
||||
|
||||
tinymce.init({
|
||||
selector : "#nachrichten_2",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function category_change(category, create) {
|
||||
|
||||
if (category !== 'angebote') {
|
||||
if (create == 1) {
|
||||
document.getElementById('contact_info_2').disabled = 'disabled';
|
||||
tinymce.remove("#contact_info_2");
|
||||
} else {
|
||||
document.getElementById('contact_info').disabled = 'disabled';
|
||||
tinymce.remove("#contact_info");
|
||||
}
|
||||
|
||||
} else {
|
||||
if (create == 1) {
|
||||
document.getElementById('contact_info_2').disabled = false;
|
||||
|
||||
tinymce.init({
|
||||
selector : "#contact_info_2",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
document.getElementById('contact_info').disabled = false;
|
||||
|
||||
tinymce.init({
|
||||
selector : "#contact_info",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(e.target).closest(".tox").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,82 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ asset('template/js/app-dashboard.js') }}" defer></script>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="{{ asset('template/css/app-dashboard.css') }}" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ url('/dashboard') }}">
|
||||
{{ config('app.name', 'Laravel') }}
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<!-- Left Side Of Navbar -->
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
|
||||
<!-- Right Side Of Navbar -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Authentication Links -->
|
||||
@guest('dashboard')
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('dashboard.login') }}">{{ __('Login') }}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('dashboard.register') }}">{{ __('Register') }}</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="nav-item dropdown">
|
||||
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
||||
{{ Auth::guard('dashboard')->user()->name }} <span class="caret"></span>
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="{{ route('dashboard.profile') }}">
|
||||
Profile
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item" href="{{ route('dashboard.account') }}">
|
||||
Account
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item" href="{{ route('dashboard.logout') }}">
|
||||
{{ __('Logout') }}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
@endguest
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="py-4">
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,73 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Login') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('dashboard.login') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="remember">
|
||||
{{ __('Remember Me') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-8 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Login') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<a class="btn btn-link" href="{{ route('dashboard.password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,49 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Confirm Password') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
{{ __('Please confirm your password before continuing.') }}
|
||||
|
||||
<form method="POST" action="{{ route('password.confirm') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-8 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Confirm Password') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,47 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Reset Password') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Send Password Reset Link') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,65 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Reset Password') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Reset Password') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,80 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Register') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('dashboard.register') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Name') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
|
||||
|
||||
@error('name')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email">
|
||||
|
||||
<input type="hidden" name="role_id" value="3" />
|
||||
<input type="hidden" name="description" value="" />
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Register') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,28 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Verify Your Email Address') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ __('A fresh verification link has been sent to your email address.') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ __('Before proceeding, please check your email for a verification link.') }}
|
||||
{{ __('If you did not receive the email') }},
|
||||
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,600 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="admin-header">
|
||||
<div class="admin-header" style="margin-bottom:0px !important;">
|
||||
<div class="container">
|
||||
<h1><i class="fal fa-file-alt"></i> Edit Content</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<div class="modal fade" id="addAction" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form method="post" onsubmit="addAction();" id="add-action">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Create new action</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="type">Action type</label>
|
||||
<select class="form-control" id="type" onchange="changeTypeAction()" name="type" required="required">
|
||||
<option value="1">Webhook</option>
|
||||
<option value="2">E-mail</option>
|
||||
<option value="3">Donation</option>
|
||||
<option value="4">Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_name">Action name</label><input type="text" required="required" class="form-control" id="action_name" placeholder="Action name" name="action_name"></div>
|
||||
<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="action_description" placeholder="Action description" name="action_description"></div>
|
||||
<div class="form-group"><label for="action_icon">Action icon</label><input type="text" required="required" class="form-control" id="action_icon" placeholder="Action icon" name="action_icon"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="action_color">Action color</label>
|
||||
<select class="form-control" id="action_color" name="action_color" required="required">
|
||||
<option value="primary">Primary</option>
|
||||
<option value="secondary">Secondary</option>
|
||||
<option value="success">Success</option>
|
||||
<option value="danger">Danger</option>
|
||||
<option value="warning">Warning</option>
|
||||
<option value="info">Info</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_amount">Action amount</label>
|
||||
<input type="number" required="required" class="form-control" id="action_amount" placeholder="Action amount" name="action_amount" min="1" step="1"></div>
|
||||
<div class="form-group"><label for="action_target">Action target url</label><input type="url" required="required" class="form-control" id="action_target" placeholder="Action target url" name="action_webhook"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="editAction" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form method="post" onsubmit="editAction();" id="edit-action">
|
||||
<input type="hidden" name="pos" value="" />
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Edit action</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="type">Action type</label>
|
||||
<select class="form-control" onchange="changeTypeActionEdit()" id="editType" name="type" required="required">
|
||||
<option value="1">Webhook</option>
|
||||
<option value="2">E-mail</option>
|
||||
<option value="3">Donation</option>
|
||||
<option value="4">Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_name">Action name</label><input type="text" required="required" class="form-control" id="edit_action_name" placeholder="Action name" name="action_name"></div>
|
||||
<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="edit_action_description" placeholder="Action description" name="action_description"></div>
|
||||
<div class="form-group"><label for="action_icon">Action icon</label><input type="text" required="required" class="form-control" id="edit_action_icon" placeholder="Action icon" name="action_icon"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="action_color">Action color</label>
|
||||
<select class="form-control" id="edit_action_color" name="action_color" required="required">
|
||||
<option value="primary">Primary</option>
|
||||
<option value="secondary">Secondary</option>
|
||||
<option value="success">Success</option>
|
||||
<option value="danger">Danger</option>
|
||||
<option value="warning">Warning</option>
|
||||
<option value="info">Info</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group"><label for="action_amount">Action amount</label><input type="number" required="required" class="form-control" id="edit_action_amount" placeholder="Action amount" name="action_amount" min="1" step="1"></div>
|
||||
<div class="form-group"><label for="edit_action_target">Action target url</label><input type="url" required="required" class="form-control" id="edit_action_target" placeholder="Action target url" name="action_webhook"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form action="{{route('dashboard.editNachrichten')}}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="nach_id" required="required" value="{{ $nach->id }}" name="nach_id">
|
||||
|
||||
@csrf
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-4">
|
||||
<label for="exampleFormControlInputImage">{{ __('admin-content.content-image') }}</label>
|
||||
|
||||
<a style="cursor:pointer;" class="img-content" onclick="clickImgContent();">
|
||||
<img src="{{ url('/uploads/' . $nach->image) }}" class="img-fluid" id="img-content-fluid">
|
||||
</a>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="file" id="exampleFormControlInputImage" name="image" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-8">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInput1">Nachrichten Titel</label>
|
||||
<input type="text" class="form-control" id="title" value="{{ $nach->title }}" placeholder="Überschrift des Beitrags" name="title" required="required">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="category_id">Kategorie</label>
|
||||
<select class="form-control" id="category_id" name="category_id" required="required">
|
||||
<option value="">Wählen Sie eine Option</option>
|
||||
@foreach ($categories as $category)
|
||||
<option value="{{ $category->id }}" {{ $category->id == $nach->category_id ? 'selected' : '' }}>{{ $category->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
@if (config('settings.lnd_status'))
|
||||
|
||||
<h6 class="ci-color"><i class="fal fa-gem"></i> Define as Premium Content</h6>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 55px;margin-top:15px;">
|
||||
<div class="custom-control custom-switch float-left">
|
||||
<input type="checkbox" onchange="changePaid2(this);" name="paid" class="custom-control-input" {{ $nach->paid > 0 ? 'checked' : '' }} id="paid" value="1">
|
||||
<label class="custom-control-label" for="paid">Ja</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-amount2">
|
||||
@if ($nach->paid != 0)
|
||||
<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" class="form-control" id="paidAmount" value="{{ $nach->paid }}" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required" min="1" step="1"></div>
|
||||
<div class="form-group"><label for="premium_until">Premium Until</label><input type="date" class="form-control" id="premium_until" value="{{ $nach->premium_until }}" placeholder="Premium Until" name="premium_until"></div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="additional_fields">
|
||||
@if ($nach->type_id == 2)
|
||||
<div class="form-group"><label for="workplace">Arbeitsort</label><input type="text" class="form-control" id="workplace" value="{{ isset($nach->additional_fields['workplace']) ? $nach->additional_fields['workplace'] : '' }}" placeholder="Arbeitsort" name="additional_fields[workplace]"></div>
|
||||
<div class="form-group"><label for="contact_info">Kontaktdaten</label><textarea class="form-control" id="contact_info" name="additional_fields[contact_info]" rows="3" placeholder="Kontaktdaten">{!! isset($nach->additional_fields['contact_info']) ? $nach->additional_fields['contact_info'] : '' !!}</textarea></div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($nach->type_id == 3)
|
||||
<div id="action" style="margin-top:10px;">
|
||||
<hr>
|
||||
<h5 style="margin-top:20px;margin-bottom:20px;"><i class="fal fa-play-circle"></i> Action Buttons <a href="" data-toggle="modal" data-target="#addAction" class="float-right"><i class="fal fa-plus"></i> Create new Action</a></h5>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-borderless table-actions">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Preview Button</th>
|
||||
<th scope="col">Action Type</th>
|
||||
<th scope="col">Action Target</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 0 ;?>
|
||||
@foreach ($nach->actions as $action)
|
||||
<tr id="{{ $i }}" data-idAction="{{ $action->id }}">
|
||||
<input type="hidden" name="action[{{ $i }}][id]" value="{{ $action->id }}"/>
|
||||
<input type="hidden" name="action[{{ $i }}][icon]" value="{{ $action->icon }}"/>
|
||||
<input type="hidden" name="action[{{ $i }}][color]" value="{{ $action->color }}"/>
|
||||
<input type="hidden" name="action[{{ $i }}][amount]" value="{{ $action->amount }}"/>
|
||||
<input type="hidden" name="action[{{ $i }}][name]" value="{{ $action->name }}"/>
|
||||
<input type="hidden" name="action[{{ $i }}][description]" value="{{ $action->description }}"/>
|
||||
|
||||
<td><a class="btn btn-{{ $action->color }}" style="color:white"> <i class="fal fa-{{ $action->icon }}"></i> {{ $action->name }} for {{ $action->amount }} sats</a></td>
|
||||
|
||||
<td>{{ $action->getType() }}<input type="hidden" name="action[{{ $i }}][type]" value="{{ $action->type }}"/></td>
|
||||
<td>{{ $action->target }}<input type="hidden" name="action[{{ $i }}][target]" value="{{ $action->target }}"/></td>
|
||||
<td class="float-right"><a href="" onclick="openEditAction({{ $i }})" data-id="{{ $i }}"><i class="fal fa-edit"></i></a> | <a href="" onclick="removeAction({{ $i }})" data-id="'+pos+'"><i class="fad fa-trash" style="color: red;cursor:pointer;"></i></a></td>
|
||||
</tr>
|
||||
|
||||
<?php $i++;?>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom:30px;">
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" {{ $nach->show_total_paid_action == 1 ? 'checked' : '' }} name="show_total_paid_action" value="1" id="show_total_paid_action">
|
||||
<label class="custom-control-label" for="show_total_paid_action">Display already paid amount to User</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1">
|
||||
<label class="custom-control-label" for="customSwitch1">Actions to behave as switch</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<h5> {{ __('admin-content.content-text') }}</h5>
|
||||
</div>
|
||||
<textarea class="form-control" id="nachrichten_2" rows="3" placeholder="Nachrichten Text" name="nachrichten" required="required">
|
||||
{!! $nach->nachrichten !!}
|
||||
</textarea>
|
||||
<br>
|
||||
|
||||
<label for="exampleFormControlTextarea1">Dateien zum Beitrag</label>
|
||||
<br>
|
||||
|
||||
<div class="col-md-6" style="margin-bottom:20px;">
|
||||
<input type="file" class="form-control" id="images" name="files[]" onchange="preview_images();" multiple/>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top:20px;margin-bottom: 50px;">
|
||||
<div class="custom-control custom-switch float-left" style="display: block;">
|
||||
<input type="checkbox" name="publish" {{ $nach->publish_at ? 'checked' : '' }} onchange="changePublish(this);" class="custom-control-input" id="publish" value="1">
|
||||
<label class="custom-control-label" for="publish">Schedule publication</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-publish" style="{{ $nach->publish_at ? 'display: block;' : 'display: none;' }}">
|
||||
<div class="form-group">
|
||||
<label for="publish_at">{{ __('admin-content.content-publish') }}</label>
|
||||
<input type="date" class="form-control" id="publish_at" placeholder="{{ __('admin-content.content-publish') }}" name="publish_at" value="{{ $nach->publish_at }}" {{ $nach->publish_at ? 'required' : '' }}>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer" style="border: 0px;">
|
||||
<button type="submit" class="btn btn-primary float-right">
|
||||
<i class="fal fa-save"></i>
|
||||
Beitrag aktualisieren
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script src="https://cdn.tiny.cloud/1/0015awrvvurgnwz3e0uid83chhzb7lnbi6wyn4ukk7b4lh9k/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
||||
<script src="{{ asset('system/js/tiny-de.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(e.target).closest(".tox").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function clickImgContent()
|
||||
{
|
||||
document.getElementById('exampleFormControlInputImage').click();
|
||||
}
|
||||
|
||||
document.getElementById('exampleFormControlInputImage').addEventListener('change', readURL, true);
|
||||
|
||||
function readURL(){
|
||||
var file = document.getElementById("exampleFormControlInputImage").files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = function(){
|
||||
document.getElementById('img-content-fluid').setAttribute("src", reader.result);
|
||||
//document.getElementById('clock').style.backgroundImage = "url(" + reader.result + ")";
|
||||
}
|
||||
if(file){
|
||||
reader.readAsDataURL(file);
|
||||
}else{
|
||||
}
|
||||
}
|
||||
|
||||
function changePublish(event) {
|
||||
if ($("#publish").prop("checked")) {
|
||||
$('.box-publish').css('display', 'block');
|
||||
$('#publish_at').attr('required', 'required');
|
||||
} else {
|
||||
$('.box-publish').css('display', 'none');
|
||||
$('#publish_at').removeAttr('required');
|
||||
$('#publish_at').val('');
|
||||
}
|
||||
}
|
||||
|
||||
function changeTypeAction()
|
||||
{
|
||||
var value = $('#type').val();
|
||||
|
||||
if (value == 1) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 2) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target email');
|
||||
$('#action_target').css('display', 'block').attr('type', 'email').attr('placeholder', 'Action target email').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 4) {
|
||||
$('[for="action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 3) {
|
||||
$('[for="action_target"]').css('display', 'none');
|
||||
$('#action_target').css('display', 'none').removeAttr('required');
|
||||
}
|
||||
}
|
||||
|
||||
function changeTypeActionEdit()
|
||||
{
|
||||
var value = $('#editType').val();
|
||||
|
||||
if (value == 1) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 2) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target email');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'email').attr('placeholder', 'Action target email').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 4) {
|
||||
$('[for="edit_action_target"]').css('display', 'block').text('Action target url');
|
||||
$('#edit_action_target').css('display', 'block').attr('type', 'url').attr('placeholder', 'Action target url').attr('required', 'required');
|
||||
}
|
||||
|
||||
if (value == 3) {
|
||||
$('[for="edit_action_target"]').css('display', 'none');
|
||||
$('#edit_action_target').css('display', 'none').removeAttr('required');
|
||||
}
|
||||
}
|
||||
|
||||
function changePaid(event)
|
||||
{
|
||||
if (event.value == 1) {
|
||||
var data_html = '<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" class="form-control" id="paidAmount" value="1000" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required" min="1" step="1"></div>';
|
||||
data_html += '<div class="form-group"><label for="premium_until">Premium Until</label><input type="date" class="form-control" id="premium_until" placeholder="Premium Until" name="premium_until"></div>';
|
||||
|
||||
$('.form-amount').html(data_html);
|
||||
} else {
|
||||
$('.form-amount').empty();
|
||||
}
|
||||
}
|
||||
|
||||
function changePaid2(event)
|
||||
{
|
||||
if ($("#paid").prop("checked") == 1) {
|
||||
var data_html = '<div class="form-group"><label for="paidAmount">Bezahlbarer Betrag</label><input type="number" class="form-control" id="paidAmount" value="1000" placeholder="Bezahlbarer Betrag" name="paidAmount" required="required" min="1" step="1"></div>';
|
||||
data_html += '<div class="form-group"><label for="premium_until">Premium Until</label><input type="date" class="form-control" id="premium_until" placeholder="Premium Until" name="premium_until"></div>';
|
||||
|
||||
$('.form-amount2').html(data_html);
|
||||
} else {
|
||||
$('.form-amount2').empty();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function addAction()
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
var pos = $('.table-actions tbody tr:last').attr('id');
|
||||
|
||||
if (!pos) {
|
||||
var pos = 1;
|
||||
} else {
|
||||
var pos = parseInt(pos) + 1;
|
||||
}
|
||||
|
||||
var html_content = '<tr id="'+pos+'">';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][icon]" value="'+$('#action_icon').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][color]" value="'+$('#action_color').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][amount]" value="'+$('#action_amount').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][name]" value="'+$('#action_name').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][description]" value="'+$('#action_description').val()+'"/>';
|
||||
|
||||
html_content += '<td><a class="btn btn-'+$('#action_color').val()+'" style="color:white"> <i class="fal fa-'+$('#action_icon').val()+'"></i> '+$('#action_name').val()+' for '+$('#action_amount').val()+' sats</a></td>';
|
||||
|
||||
html_content += '<td>'+$( "#type option:selected" ).text()+'<input type="hidden" name="action['+pos+'][type]" value="'+$('#type').val()+'"/></td>';
|
||||
html_content += '<td>'+$('#action_target').val()+'<input type="hidden" name="action['+pos+'][target]" value="'+$('#action_target').val()+'"/></td>';
|
||||
html_content += '<td class="float-right"><a href="" onclick="openEditAction('+pos+')" data-id="'+pos+'"><i class="fal fa-edit"></i></a> | <a href="" onclick="removeAction('+pos+')" data-id="'+pos+'"><i class="fad fa-trash" style="color: red;cursor:pointer;"></i></a></td>';
|
||||
html_content += '</tr>';
|
||||
|
||||
$('.table-actions tbody').append(html_content);
|
||||
|
||||
$('#add-action')[0].reset();
|
||||
|
||||
$('.modal').modal('hide');
|
||||
}
|
||||
|
||||
function removeAction(id)
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
$('#' + id).remove();
|
||||
}
|
||||
|
||||
function openEditAction(id)
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
$('[name="pos"]').val(id);
|
||||
|
||||
/*if ($('#' + id).attr('data-idAction')) {
|
||||
$('#edit-action').attr('data-idAction', $('#' + id).attr('data-idAction'));
|
||||
} else {
|
||||
$('#edit-action').removeAttr('data-idAction');
|
||||
}*/
|
||||
|
||||
$('#editType').val($('[name="action['+id+'][type]"]').val());
|
||||
$('#edit_action_name').val($('[name="action['+id+'][name]"]').val());
|
||||
$('#edit_action_description').val($('[name="action['+id+'][description]"]').val());
|
||||
$('#edit_action_icon').val($('[name="action['+id+'][icon]"]').val());
|
||||
$('#edit_action_color').val($('[name="action['+id+'][color]"]').val());
|
||||
$('#edit_action_amount').val($('[name="action['+id+'][amount]"]').val());
|
||||
$('#edit_action_target').val($('[name="action['+id+'][target]"]').val());
|
||||
|
||||
changeTypeActionEdit();
|
||||
|
||||
$('#editAction').modal('toggle');
|
||||
}
|
||||
|
||||
function editAction()
|
||||
{
|
||||
event.preventDefault();
|
||||
|
||||
var pos = $('[name="pos"]').val();
|
||||
|
||||
if ($('#' + pos).attr('data-idAction')) {
|
||||
var html_content = '<tr id="'+pos+'" data-idAction="'+$('#' + pos).attr('data-idAction')+'">';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][id]" value="'+$('#' + pos).attr('data-idAction')+'"/>';
|
||||
} else {
|
||||
var html_content = '<tr id="'+pos+'">';
|
||||
}
|
||||
|
||||
html_content += '<input type="hidden" name="action['+pos+'][icon]" value="'+$('#edit_action_icon').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][color]" value="'+$('#edit_action_color').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][amount]" value="'+$('#edit_action_amount').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][name]" value="'+$('#edit_action_name').val()+'"/>';
|
||||
html_content += '<input type="hidden" name="action['+pos+'][description]" value="'+$('#edit_action_description').val()+'"/>';
|
||||
|
||||
html_content += '<td><a class="btn btn-'+$('#edit_action_color').val()+'" style="color:white"> <i class="fal fa-'+$('#edit_action_icon').val()+'"></i> '+$('#edit_action_name').val()+' for '+$('#edit_action_amount').val()+' sats</a></td>';
|
||||
|
||||
html_content += '<td>'+$( "#editType option:selected" ).text()+'<input type="hidden" name="action['+pos+'][type]" value="'+$('#editType').val()+'"/></td>';
|
||||
html_content += '<td>'+$('#edit_action_target').val()+'<input type="hidden" name="action['+pos+'][target]" value="'+$('#edit_action_target').val()+'"/></td>';
|
||||
html_content += '<td class="float-right"><a href="" onclick="openEditAction('+pos+')" data-id="'+pos+'"><i class="fal fa-edit"></i></a> | <a href="" onclick="removeAction('+pos+')" data-id="'+pos+'"><i class="fad fa-trash" style="color: red;cursor:pointer;"></i></a></td>';
|
||||
html_content += '</tr>';
|
||||
|
||||
|
||||
$('#' + pos).remove();
|
||||
$('.table-actions tbody').append(html_content);
|
||||
|
||||
$('#edit-action')[0].reset();
|
||||
|
||||
$('.modal').modal('hide');
|
||||
}
|
||||
|
||||
function changeType(event) {
|
||||
var type = event;
|
||||
|
||||
$('#additional_fields_create').empty();
|
||||
|
||||
if (type == 2) {
|
||||
var data_html_type = '<div class="form-group"><label for="workplace">Arbeitsort</label><input type="text" class="form-control" id="workplace" placeholder="Arbeitsort" name="additional_fields[workplace]"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="contact_info">Kontaktdaten</label><textarea class="form-control" id="contact_info" name="additional_fields[contact_info]" rows="3" placeholder="Kontaktdaten"></textarea></div>';
|
||||
|
||||
$('#additional_fields_create').html(data_html_type);
|
||||
}
|
||||
|
||||
if (type == 3) {
|
||||
var data_html_type = '<div class="form-group"><label for="action_name">Action name</label><input type="text" class="form-control" id="action_name" placeholder="Action name" name="action_name"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_description">Action description</label><input type="text" class="form-control" id="action_description" placeholder="Action description" name="action_description"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_icon">Action icon</label><input type="text" class="form-control" id="action_icon" placeholder="Action icon" name="action_icon"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_amount">Action amount</label><input type="number" class="form-control" id="action_amount" placeholder="Action amount" name="action_amount"></div>';
|
||||
data_html_type += '<div class="form-group"><label for="action_webhook">Action URL Webhook</label><input type="text" class="form-control" id="action_webhook" placeholder="Action URL Webhook" name="action_webhook"></div>';
|
||||
|
||||
$('#additional_fields_create').html(data_html_type);
|
||||
}
|
||||
}
|
||||
|
||||
tinymce.init({
|
||||
selector : "#nachrichten_2",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function category_change(category, create) {
|
||||
|
||||
if (category !== 'angebote') {
|
||||
if (create == 1) {
|
||||
document.getElementById('contact_info_2').disabled = 'disabled';
|
||||
tinymce.remove("#contact_info_2");
|
||||
} else {
|
||||
document.getElementById('contact_info').disabled = 'disabled';
|
||||
tinymce.remove("#contact_info");
|
||||
}
|
||||
|
||||
} else {
|
||||
if (create == 1) {
|
||||
document.getElementById('contact_info_2').disabled = false;
|
||||
|
||||
tinymce.init({
|
||||
selector : "#contact_info_2",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
document.getElementById('contact_info').disabled = false;
|
||||
|
||||
tinymce.init({
|
||||
selector : "#contact_info",
|
||||
plugins: 'advlist link image lists',
|
||||
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link | unlink | image',
|
||||
height: '250',
|
||||
directionality : 'de',
|
||||
language : 'de',
|
||||
setup: function (editor) {
|
||||
editor.on('change', function (e) {
|
||||
editor.save();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(e.target).closest(".tox").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,258 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="admin-header">
|
||||
<div class="container">
|
||||
<h1><i class="fal fa-file-alt"></i> {{ __('admin-content.h1') }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="ueber-uns">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="mx-auto">
|
||||
<div class="btn-group btn-group-toggle mx-auto" data-toggle="buttons">
|
||||
@foreach ($types as $type)
|
||||
<label class="btn btn-lg {{ $type->id == $typeModel->id ? 'btn-primary' : 'btn-outline-primary' }}" onclick='window.location.href = "{{ url('/dashboard/') }}/{{ $type->slug }}";'>
|
||||
<input type="radio" name="options" id="option1" {{ $type->id == $typeModel->id ? 'checked' : '' }}> <i class="fal fa-{{ $type->icon}}"></i> {{ $type->name }}
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="{{ route('dashboard.viewAddNachrichten', [$typeModel->slug]) }}" class="float-right"><i class="fal fa-plus"></i>
|
||||
{{ __('admin-content.create-new-' . $typeModel->id) }}
|
||||
</a>
|
||||
|
||||
<br><br>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">@sortablelink('created_at', __('admin-content.date'))</th>
|
||||
<th scope="col">@sortablelink('title', __('admin-content.title'))</th>
|
||||
<th scope="col">@sortablelink('nachrichten', __('admin-content.message'))</th>
|
||||
<th scope="col">@sortablelink('category_id', __('admin-content.category'))</th>
|
||||
<th scope="col">{{ __('admin-content.extras') }}</th>
|
||||
<th scope="col" class="text-center">{{ __('admin-content.actions') }}</th>
|
||||
<th scope="col" class="text-right">@sortablelink('approved', 'Status')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($nachrichten as $nach)
|
||||
<tr id="nach{{$nach->id}}">
|
||||
|
||||
<td scope="col"><img src="{{ $nach->user->gravatar() }}" width="32" class="rounded-circle" title="{{ $nach->user->name }}"><a title="{{date('d.m.Y | H:i', strtotime($nach->created_at))}} Uhr">
|
||||
{{ $nach->created_at->diffForHumans() }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td scope="col">
|
||||
@if($nach->approved == 1)
|
||||
@if($nach->type == 'news')
|
||||
<a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}" target="_blank">{{Str::limit($nach->title, 30,'...')}} <i class="fal fa-external-link"></i> </a>
|
||||
|
||||
@else
|
||||
<a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}" target="_blank">{{Str::limit($nach->title, 30,'...')}} <i class="fal fa-external-link"></i> </a>
|
||||
|
||||
@endif
|
||||
|
||||
@else()
|
||||
{{Str::limit($nach->title, 30,'...')}}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td scope="col"> <a title="{{strip_tags(html_entity_decode($nach->nachrichten))}}">
|
||||
{{ Str::limit(strip_tags(html_entity_decode($nach->nachrichten)), 90, $end = '...') }}</a></td>
|
||||
|
||||
<td><span class="badge badge-pill badge-secondary">@if ($nach->category)
|
||||
{{ $nach->category->name }}
|
||||
@else
|
||||
-
|
||||
@endif</span>
|
||||
</td>
|
||||
|
||||
|
||||
<td scope="col">
|
||||
@if(sizeof($nach->files) > 0)
|
||||
<a href="" data-toggle="modal" data-target="#attachmentModal" onclick="getAttachments({{$nach->id}})">
|
||||
<i class="fal fa-paperclip"></i>
|
||||
<span class="badge badge-pill badge-dark">{{sizeof($nach->files)}}</span>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(sizeof($nach->comments) > 0)
|
||||
<a href="{{url('/admin/reviewComments')}}">
|
||||
<i class="fal fa-comments"></i>
|
||||
<span class="badge badge-pill badge-dark">{{sizeof($nach->comments)}}</span>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if ($type->id == 3)
|
||||
@foreach ($nach->actions as $action)
|
||||
<span class="badge badge-primary" style="margin-left:5px;"><i class="fa fa-{{$action->icon}}"></i> <span style="vertical-align: text-top;">{{ $action->name }}</span></span>
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td scope="col" class="text-center">
|
||||
<a href="{{ route('dashboard.viewEditNachrichten', [$nach->id]) }}">
|
||||
<i class="fal fa-edit"></i>
|
||||
</a>
|
||||
| <i class="fad fa-trash" style="color: red;cursor:pointer;" onclick="removeNach({{$nach->id}})"></i>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td scope="col" class="text-right">
|
||||
|
||||
@if ($nach->paid != 0 and (empty($nach->premium_until) or $nach->premium_until > date('Y-m-d')))
|
||||
|
||||
<i class="fal fa-gem ci-color" title="Premium | Amount: {{$nach->paid}} sats"></i>
|
||||
|
|
||||
@endif
|
||||
|
||||
@if($nach->approved != 1)
|
||||
@if ($nach->approved == 2)
|
||||
<a>
|
||||
<i class="fas fa-spinner-third fa-spin" id="approved-{{$nach->id}}" style="color: orange"></i>
|
||||
</a>
|
||||
@else
|
||||
<a>
|
||||
<i class="fas fa-calendar-alt" id="approved-{{$nach->id}}" style="color: red"></i>
|
||||
</a>
|
||||
@endif
|
||||
@else
|
||||
<a>
|
||||
<i class="fas fa-calendar-alt" id="approved-{{$nach->id}}" style="color: green;" ></i>
|
||||
</a>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@if ($nachrichten->count() == 0)
|
||||
<tr>
|
||||
<td valign="top" colspan="7" class="text-center table-empty">No records found!</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
</section>
|
||||
|
||||
<div class="modal fade" id="attachmentModal" role="dialog" aria-labelledby="attach_label_modal" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="attach_label_modal">Dateien</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<input type="hidden" id="nach_id"required="required" value="", name="nach_id">
|
||||
<div class="modal-body">
|
||||
<h5><i class="fal fa-file"></i> Anhänge:</h5>
|
||||
<div class="form-group" id="attachments_div"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(e.target).closest(".tox").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function removeNach(id) {
|
||||
$.ajax({
|
||||
data:{
|
||||
'_token':'{{csrf_token()}}',
|
||||
'id': id,
|
||||
},
|
||||
type:"POST",
|
||||
async:true,
|
||||
url:"{{route('dashboard.removeMessage')}}",
|
||||
success:function(data) {
|
||||
document.getElementById('nach'+data.response).remove();
|
||||
|
||||
toastr.options = {
|
||||
"progressBar": true
|
||||
};
|
||||
|
||||
var msg = toastr.success('Successfully removed!', 'Success');
|
||||
|
||||
$(msg).click(function() {
|
||||
$.ajax({
|
||||
type:"GET",
|
||||
async:true,
|
||||
url:"{{url('admin/restoreNach')}}/" + id,
|
||||
success:function(data) {
|
||||
location.reload();
|
||||
},
|
||||
error:function(data) {
|
||||
console.log('error!!')
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
error:function(data) {
|
||||
console.log('error!!')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getAttachments(id) {
|
||||
$.ajax({
|
||||
data:{
|
||||
'_token':'{{csrf_token()}}',
|
||||
'id': id,
|
||||
},
|
||||
type:"POST",
|
||||
async:true,
|
||||
url:"{{route('dashboard.getAttachments')}}",
|
||||
success:function(data) {
|
||||
console.log('success')
|
||||
let attach_div = document.getElementById('attachments_div')
|
||||
attach_div.innerHTML = data.response
|
||||
},
|
||||
error:function(data) {
|
||||
console.log('error!!')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function removeAttach(id, child) {
|
||||
$.ajax({
|
||||
data:{
|
||||
'_token':'{{csrf_token()}}',
|
||||
'id': id,
|
||||
},
|
||||
type:"POST",
|
||||
async:true,
|
||||
url:"{{route('dashboard.removeFile')}}",
|
||||
success:function(data) {
|
||||
console.log('success')
|
||||
node = document.getElementById('file_' + id)
|
||||
node.parentNode.removeChild(node);
|
||||
},
|
||||
error:function(data) {
|
||||
console.log('error!!')
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@stop
|
|
@ -1,116 +0,0 @@
|
|||
@extends('template.'.config('settings.template').'.content.dashboard.app')
|
||||
@section('content')
|
||||
|
||||
<div class="admin-header">
|
||||
<div class="admin-header" style="margin-bottom:0px !important;">
|
||||
<div class="container">
|
||||
<div class="col">
|
||||
<h1><i class="fal fa-user"></i> Profile</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 offset-lg-3">
|
||||
<form action="{{route('dashboard.profile')}}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-4">
|
||||
<a style="cursor:pointer;" onclick="clickImgContent();">
|
||||
<img src="{{ \Auth::user()->gravatar() }}" class="rounded-circle mx-auto d-block img-fluid border" id="img-content-fluid" title="" width="120">
|
||||
</a>
|
||||
|
||||
@if ($user->image)
|
||||
<a style="margin-left: 22px;padding-top:10px;display:block;" href="{{ route('dashboard.profile.removeImage') }}">Remove Image</a>
|
||||
@endif
|
||||
|
||||
<br>
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-md-8">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputName">Name</label>
|
||||
<input type="text" class="form-control" id="exampleFormControlInputName" value="{{ $user->name }}" placeholder="Name" name='name' required="required">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputDesc">About me</label>
|
||||
<input type="text" class="form-control" id="exampleFormControlInputDesc" value="{{ $user->description }}" placeholder="Description" name='description' required="required">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<h5>Social Links</h5>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputWebsite"> <i class="fal fa-globe"></i> Website</label>
|
||||
<input type="text" class="form-control" id="exampleFormControlInputWebsite" value="{{ isset($user->social_networks['site']) ? $user->social_networks['site'] : '' }}" placeholder="Website" name='social_networks[site]'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputFacebook"> <i class="fab fa-facebook"></i> Facebook</label>
|
||||
<input type="text" class="form-control" id="exampleFormControlInputFacebook" value="{{ isset($user->social_networks['facebook']) ? $user->social_networks['facebook'] : '' }}" placeholder="Facebook" name='social_networks[facebook]'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlInputTwitter"> <i class="fab fa-twitter"></i> Twitter</label>
|
||||
<input type="text" class="form-control" id="exampleFormControlInputTwitter" value="{{ isset($user->social_networks['twitter']) ? $user->social_networks['twitter'] : '' }}" placeholder="Twitter" name='social_networks[twitter]'>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display: none;">
|
||||
<label for="imageEdit">Image Profile</label>
|
||||
<input type="file" id="imageEdit" accept='image/*' name="image" class="form-control">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary float-right" style="margin-top:10px;">
|
||||
<i class="fal fa-save"></i>
|
||||
Save
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function clickImgContent()
|
||||
{
|
||||
document.getElementById('imageEdit').click();
|
||||
}
|
||||
|
||||
document.getElementById('imageEdit').addEventListener('change', readURL, true);
|
||||
|
||||
function readURL(){
|
||||
var file = document.getElementById("imageEdit").files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = function(){
|
||||
document.getElementById('img-content-fluid').setAttribute("src", reader.result);
|
||||
//document.getElementById('clock').style.backgroundImage = "url(" + reader.result + ")";
|
||||
}
|
||||
if(file){
|
||||
reader.readAsDataURL(file);
|
||||
}else{
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@stop
|
|
@ -4,12 +4,14 @@
|
|||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
|
||||
<link href="{{asset('template/css/main.css')}}" rel="stylesheet" >
|
||||
<link href="{{asset('template/css/main.css?v=1')}}" rel="stylesheet" >
|
||||
|
||||
<style>
|
||||
|
||||
h1,h2,h3{
|
||||
color: #413c35;
|
||||
font-family: Merriweather-Bold;
|
||||
|
||||
}
|
||||
|
||||
a{
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<img class="push-down-10" alt="Footer Logo" src="{{ asset('template/images/logo-footer.png') }}" >
|
||||
|
||||
<p class="push-down-15">Neuigkeiten, Informationen sowie Bilder rund um den Biohof Finkenhammer. Folgen Sie uns auf Ihrem bevorzugten sozialen Netzwerken:</p>
|
||||
<a href="https://www.facebook.com/finkenhammer" ><i class="fab fa-facebook fa-2x p-3"></i></a>
|
||||
<a href="https://twitter.com/finkenhammer" ><i class="fab fa-twitter fa-2x p-3"></i></a>
|
||||
<a href="https://www.instagram.com/finkenhammer/"><i class="fab fa-instagram fa-2x p-3"></i></a>
|
||||
<a href="https://www.facebook.com/finkenhammer" target="_blank" ><i class="fab fa-facebook fa-2x p-3"></i></a>
|
||||
<a href="https://twitter.com/finkenhammer" target="_blank" ><i class="fab fa-twitter fa-2x p-3"></i></a>
|
||||
<a href="https://www.instagram.com/finkenhammer/" target="_blank"><i class="fab fa-instagram fa-2x p-3"></i></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg">
|
||||
<div class="container-fluid" style="justify-content: normal;">
|
||||
<a href="{{ url('/') }}"><img alt="Logo" src="{{ asset('template/images/logo.png') }}" width="251" height="79"></a>
|
||||
<a href="{{ url('/') }}" class="navbar-brand"><img alt="Logo" src="{{ asset('template/images/logo.png') }}" class="navbar-brand" width="251" height="79"></a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<button class="navbar-toggler ms-4" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
|
||||
|
||||
|
@ -22,6 +26,11 @@
|
|||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family:"Merriweather-Regular";
|
||||
src: url("{{ asset('template/fonts/Merriweather-Bold.ttf') }}") format("truetype");
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<li class="nav-item mt-3">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
background: url('{{ asset('template/images/finkenhammer-hof.jpg') }}');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size:cover;
|
||||
background-size:auto;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
.bgimage h5 {
|
||||
|
@ -27,8 +27,8 @@
|
|||
<div class="col-12 col-md-8 col-lg-7">
|
||||
<div class="p-4 rounded" style="background-color: rgba(204,204,204,0.7); margin-top: 300px;">
|
||||
|
||||
<h1>Biohof Finkenhammer</h1>
|
||||
<p class="fs-5">Bäckerei & Hühnerhof</p>
|
||||
<h1 class="fw-bolder">Biohof Finkenhammer</h1>
|
||||
<p class="fs-5">Bäckerei & Hühnerhof aus 92714 Pleystein.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -46,8 +46,28 @@
|
|||
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
<a href="">
|
||||
<div class="alert alert-success fs-6 pt-2 px-4 mt-3" role="alert">
|
||||
dfasd
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="">
|
||||
<div class="alert alert-success fs-6 pt-2 px-4 mt-3" role="alert">
|
||||
dfasd
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="">
|
||||
<div class="alert alert-success fs-6 pt-2 px-4 mt-3" role="alert">
|
||||
dfasd
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<hr class="divider">
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<div class="push-down-30"></div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 push-down-30">
|
||||
<img src="{{asset('images/europa-pflichtpropaganda.jpg')}}" class="img-responsive">
|
||||
<img src="{{asset('template/images/europa-pflichtpropaganda.jpg')}}" class="img-responsive">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue