Removed files

This commit is contained in:
Julian Prieber 2023-06-05 15:11:16 +02:00
parent 4486cf7b6f
commit 179e3cc4d4
2 changed files with 0 additions and 140 deletions

View File

@ -1,45 +0,0 @@
@extends('layouts.sidebar')
@section('content')
<h2 class="mb-4"><i class="bi bi-pen"> Edit Link</i></h2>
<form action="{{ route('editLink', $id) }}" method="post">
@csrf
<div class="form-group col-lg-8">
<label>Link</label>
<input type="text" name="link" value="{{ $link }}" class="form-control" placeholder="https://example.com" required>
</div>
<div class="form-group col-lg-8">
<label>Title</label>
<input type="text" name="title" value="{{ $title }}" class="form-control" placeholder="Example">
</div>
<div class="form-group col-lg-8">
<label for="exampleFormControlSelect1">Button</label>
<select class="form-control" name="button">
<option style="background-color:#1e90ff;color:#fff"> {{ $buttonName }} </option>
@if ($buttonName != "custom")<option style="background-color:#ffe8e4;"> custom </option>@endif
@if ($buttonName != "custom_website")<option style="background-color:#ffe8e4;"> custom_website </option>@endif
@foreach($buttons as $button)
@if (!in_array($button->name, ['custom', 'custom_website', 'heading', 'space']))
@if ($button->name != $buttonName)
<option> {{ $button->name }} </option>
@endif
@endif
@endforeach
@if ($buttonName != "heading")<option style="background-color:#ebebeb;"> heading </option>@endif
@if ($buttonName != "space")<option style="background-color:#ebebeb;"> space </option>@endif
</select>
</div>
<div class="form-group col-lg-8">
<label>Order</label>
<input type="number" name="order" value="{{ $order }}" class="form-control" placeholder="use for ordering links">
</div>
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
</form>
@endsection

View File

@ -1,95 +0,0 @@
@extends('layouts.sidebar')
@section('content')
@if($greeting == '')
<h3 class="mb-3"> 👋 Hi, stranger</h2>
<h5>You do not have a Page URL set, yet you can change that on the <a href="{{ url('/studio/page') }}">Page section</a></h5>
@else
<h3 class="mb-3"> 👋 Hi, <?= $greeting ?></h2>
@endif
<p>
Welcome to {{ config('app.name') }}!
</p>
{{-- <!-- Section: Design Block -->
<section class="mb-3 text-gray-800 text-center shadow p-4 w-full">
<div class='font-weight-bold text-left'>Visitor analytics:</div>
<div class="d-flex flex-wrap justify-content-around">
<div class="p-2">
<h3 class="text-primary"><strong>{{ $pageStats['visitors']['day']}}</strong></h3>
<span class="text-muted">Today</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong>{{ $pageStats['visitors']['week']}}</strong></h3>
<span class="text-muted">Week</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong>{{ $pageStats['visitors']['month']}}</strong></h3>
<span class="text-muted">Month</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong>{{ $pageStats['visitors']['year']}}</strong></h3>
<span class="text-muted">Year</span>
</div>
<div class="p-2">
<h3 class="text-primary"><strong>{{ $pageStats['visitors']['all']}}</strong></h3>
<span class="text-muted">All Time</span>
</div>
</div>
</section> --}}
<section class="mb-3 text-center shadow p-4 w-full">
<div class=" d-flex">
<div class='p-2 h6'><i class="bi bi-link"></i> Total Links: <span class='text-primary'>{{ $links }} </span></div>
<div class='p-2 h6'><i class="bi bi-eye"></i> Link Clicks: <span class='text-primary'>{{ $clicks }}</span></div>
</div>
<div class='text-center w-100'>
<a href="{{ url('/studio/links') }}">View/Edit Links</a>
</div>
<div class='w-100 text-left'>
<h6><i class="bi bi-sort-up"></i> Top Links:</h6>
@php $i = 0; @endphp
@foreach($toplinks as $link)
@php $linkName = str_replace('default ','',$link->name) @endphp
@php $i++; @endphp
<ol class='list-group list-group-flush bg-transparent'>
@if($link->name !== "phone" && $link->name !== 'heading' && $link->button_id !== 96)
<li class="list-group-item bg-transparent">
{{ $i }}.) {{$link->title}} -- <span class='text-primary' title='Click Count'>{{$link->click_number}} </span> <br />
<a href="{{$link->link}}" class='small ml-3' title='{{$link->link}}' target="_blank">{{$link->link}}</a></li>
@endif
</ol>
@endforeach
</section>
{{-- <pre>{{ print_r($pageStats) }}</pre> --}}
@endsection