Merge remote-tracking branch 'refs/remotes/origin/master'

master
Gustavo Luigi 2022-11-30 13:21:55 -03:00
commit dbf7e10d0d
30 changed files with 108 additions and 2126 deletions

View File

@ -4,7 +4,8 @@
<div class="container">
<div class="row">
<div class="col-xs-12">
<nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);" aria-label="breadcrumb"> <ol class="breadcrumb">
<nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{url('/')}}">Startseite</a></li>
<li class="breadcrumb-item"><a href="{{url('/verkaufsstellen')}}">Verkaufsstellen</a></li>
<li class="breadcrumb-item active" aria-current="page">{{$content->title}}</li>
@ -29,15 +30,17 @@
@endisset


@if ($content->image)
<img class="gallery" alt="Gallery image" src="{{ asset('uploads/' . content->image) }}">
<img class="rounded img-fluid" alt=" Finkenhammer Verkaufsstandort {{$content->title}}" src="{{$content->image}}">

@endif


<p class="mt-3 fs-4">
{{$content->data_fields['ort']}}
<svg style="width: 14px; margin-bottom: 7px; margin-right: 2px; fill: #d0504f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
<!-- Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
<path d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"></path>
</svg> {{$content->data_fields['ort']}}
<br>
<svg style="width: 14px; margin-bottom: 7px; margin-right: 2px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z"/></svg>
{{$content->data_fields['offnungszeiten']}}
</p>

@ -50,7 +53,7 @@
<br>

@isset($content->data_fields['andere_marktteilnehmer'])
<h2>Andre Marktteilnehmer und deren Produkte</h2>
<h2 class="h5">Andre Marktteilnehmer und deren Produkte</h2>


{!!$content->data_fields['andere_marktteilnehmer']!!}

View File

@ -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

View File

@ -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">&times;</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">&times;</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>&nbsp;|&nbsp;<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>&nbsp;|&nbsp;<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

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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">&times;</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">&times;</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>&nbsp;|&nbsp;<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>&nbsp;|&nbsp;<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>&nbsp;|&nbsp;<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

View File

@ -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>
|&nbsp;<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

View File

@ -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

View File

@ -1,15 +1,24 @@
<head>
<meta charset="utf-8"/>
<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"/>
<meta charset="utf-8">
<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?v=1')}}" rel="stylesheet" >

<style>
h1,h2,h3{
color: #413c35;
font-family: Merriweather-Bold;

}
a{
color: #71a866;
}

a:hover{
color: #71a866;
text-decoration: underline;
}
footer a{
color: white;


View File

@ -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>

View File

@ -2,10 +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>
<button class="navbar-toggler" 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>
<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 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">
<style>
@ -17,6 +22,13 @@
.nav-item a:hover, .nav-item a:active{
color: #71a866;
}


@font-face {
font-family:"Merriweather-Regular";
src: url("{{ asset('template/fonts/Merriweather-Bold.ttf') }}") format("truetype");
}

</style>
<li class="nav-item mt-3">
<a class="nav-link mx-md-4" href="{{url('/verkaufsstellen')}}">Verkaufsstellen</a>

View File

@ -23,8 +23,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>
@ -32,16 +32,20 @@
</div>
</section>
<div class="container">


<div class="row">
<div class="col-sm-12">

<a href="https://www.finkenhammer.de/news/bauernmarkt-vohenstrauss-am-25112022-vor-der-eisdiele">
<div class="alert alert-success fs-6 pt-2 px-4 mt-3" role="alert">
Achtung! Bauernmarkt in Vohenstrauss Diese Woche 25. November 2022 stehen die Marktstände vor der Eisdiele.
</div>
</a>


</div>
<hr class="divider">
<div class="text-shrink">
<p class="text-highlight">
Backwaren aus dem Holzbackofen der Traditionsbäckerei Finkenhammer
</p>
</div>
<hr class="divider divider-about">

<div class="col-sm-12">
<h2>Aktuelles</h2>
</div>
@ -55,17 +59,32 @@
<br>
</div>
@endif
<div class="col-12 col-md-6 col-lg-4">
@foreach(filterByContentType("News")->take(3) as $content)
<div class="card shadow-sm mb-5" style="background-color: #f8f8f4;">
<img src="{{$content->image}}" class="img-fluid card-img-top">
<div class="card-body">
<h2 class="h5 fw-bolder">{{$content->title}}</h2>
<p class="mt-2">{!! $content->vorschau !!}</p>
@foreach(filterByContentType("News")->take(3) as $content)
<div class="col-12 col-md-6 col-lg-4">
<div class="card shadow-sm mb-5 h-100" style="background-color: #f8f8f4;">
<img src="{{$content->image()}}" class="img-fluid card-img-top">
<div class="card-body">
<h2 class="h5 fw-bolder mb-3">{{$content->title}}</h2>
<p class="mt-2">{!! $content->vorschau !!}</p>
</div>
<div class="text-end pt-0 p-4">
<a href="{{($content->path)}}" class="text-decoration-none">
Mehr lesen ⟶
</a>
</div>
</div>
</div>
@endforeach
@endforeach

<div class="col-12">
<br>
<br>
<br>
<br>
</div>



<a href="{{url('/neuigkeiten')}}" class="small text-center mb-5 mt-3 d-none">Ältere Nachrichten</a>
</div>
</div>

View File

@ -31,20 +31,29 @@
<br>
<div class="row">

<div class="col-12">
<h2>Verkaufsautos</h2>
</div>

@foreach($contents as $content)

<div class="col-12 col-md-6 col-lg-4 mb-5">

<a href="{{($content->path)}}" class="text-decoration-none">
<div class="card shadow-sm" style="background-color: #f8f8f4;">
<img src="https://picsum.photos/600/300" class="card-img-top border-bottom img-fluid">
<img src="{{$content->image()}} " class="card-img-top border-bottom img-fluid">

<div class="card-body">
<h2 class="h5 fw-bolder">{{$content->title}}</h2>

<p class="mt-3 text-muted">
<svg style="width: 11px; margin-bottom: 7px; margin-right: 2px; fill: #d0504f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
<!-- Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
<path d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"></path>
</svg>
{{$content->data_fields['ort']}}
<br>
<svg style="width: 11px; margin-bottom: 7px; margin-right: 2px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z"/></svg>
{{$content->data_fields['offnungszeiten']}}
</p>

@ -57,6 +66,17 @@
@endforeach


<div class="col-12">
<h2>Hofladen</h2>
</div>


<div class="col-12">
<div class="card">
</div>
</div>






View File

@ -19,22 +19,6 @@
<div class="row">
<div class="col-xs-12 push-down-60">
<h1 class="center">Bäckerei</h1>
<hr class="divider">




<div class="text-shrink">
<p class="text-highlight">
Backwaren aus dem Holzbackofen der Traditionsbäckerei Finkenhammer
</p>
</div>
<hr class="divider divider-about">





</div>


@ -42,17 +26,15 @@
</div>
<!-- 4 collumns gallery -->
<div class="row">
<div class="col-xs-12 col-sm-3 push-down-20">
<img class="gallery" alt="Gallery image" src="{{ asset('template/images/holzofen.jpg') }}" width="600" height="400">

<div class="col-xs-12 col-sm-4 push-down-20">
<img class="gallery img-fluid rounded" alt="Gallery image" src="{{ asset('template/images/brot-im-ofen.jpg') }}">
</div>
<div class="col-xs-12 col-sm-3 push-down-20">
<img class="gallery" alt="Gallery image" src="{{ asset('template/images/brot-im-ofen.jpg') }}" width="600" height="400">
<div class="col-xs-12 col-sm-4 push-down-20">
<img class="gallery img-fluid rounded" alt="Gallery image" src="{{ asset('template/images/brotwaagen.jpg') }}">
</div>
<div class="col-xs-12 col-sm-3 push-down-20">
<img class="gallery" alt="Gallery image" src="{{ asset('template/images/brotwaagen.jpg') }}" width="600" height="400">
</div>
<div class="col-xs-12 col-sm-3 push-down-20">
<img class="gallery" alt="Gallery image" src="{{ asset('template/images/brotverkauf.jpg') }}" width="600" height="400">
<div class="col-xs-12 col-sm-4 push-down-20">
<img class="gallery img-fluid rounded" alt="Gallery image" src="{{ asset('template/images/brotverkauf.jpg') }}">
</div>
</div>


View File

@ -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>

View File

@ -39,10 +39,11 @@
</div>
<p class="fs-5 mb-5">Seit der Umstellung auf biologische Wirtschaftsweise 1986 werden in Finkenhammer wieder Legehennen gehalten. Nach mehrmaliger Erweiterung wurde dann im Jahre 2010 u. 2011 30 Stallungen für jeweils 100 Hühner errichtet.

Der Biohof Finkenhammer ist der erste Betrieb in Bayern, die diese in Österreich entwickelte tiergerechte Streßfreie Legehennenhaltung realisiert hat. Für jeden Stall stehen Wasser und Futter sowie ein eigener abgezäunter Auslauf zur Verfügung. Gefüttert werden die Tiere mit einer Futtermischung nach den strengen Bioland-Richtlinien. Wir verwenden einen Teil der Eier in unserer eigenen Bäckerei.
Der Biohof Finkenhammer ist der erste Betrieb in Bayern, der diese in Österreich entwickelte tiergerechte & streßfreie Legehennenhaltung realisiert hat. Für jeden Stall stehen Wasser und Futter sowie ein eigener abgezäunter Auslauf zur Verfügung. Gefüttert werden die Tiere mit einer Futtermischung nach den strengen Bioland-Richtlinien. Wir verwenden einen Teil der Eier in unserer eigenen Bäckerei.

</p>


<br>
</div>


Binary file not shown.

Binary file not shown.

BIN
fonts/Merriweather-Bold.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.