2021-04-16 01:00:00 +02:00
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2022-05-13 18:10:43 +02:00
|
|
|
@if(env('ALLOW_USER_HTML') === true) <script src="{{ asset('resources/ckeditor/ckeditor.js') }}"></script> @endif
|
|
|
|
|
2021-07-06 10:53:14 +02:00
|
|
|
<h2 class="mb-4"><i class="bi bi-file-earmark-break"> Page</i></h2>
|
|
|
|
|
2022-05-13 19:35:13 +02:00
|
|
|
@foreach($pages as $page)
|
2021-04-16 01:00:00 +02:00
|
|
|
<form action="{{ route('editPage') }}" enctype="multipart/form-data" method="post">
|
|
|
|
@csrf
|
2022-05-13 19:35:13 +02:00
|
|
|
@if($page->littlelink_name != '')
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
|
|
|
<label>Logo</label>
|
2022-05-15 13:22:59 +02:00
|
|
|
<input type="file" accept="image/jpeg,image/jpg,image/png" class="form-control-file" name="image">
|
2021-04-16 01:00:00 +02:00
|
|
|
</div>
|
2022-05-13 19:35:13 +02:00
|
|
|
@endif
|
2021-07-06 10:53:14 +02:00
|
|
|
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
2022-02-14 12:56:50 +01:00
|
|
|
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
|
2022-05-15 11:34:02 +02:00
|
|
|
<img src="{{ asset("img/$page->littlelink_name" . ".png") }}" style="width: 75px; height: 75px; border-radius: 50%; object-fit: cover;">
|
2021-07-06 10:53:14 +02:00
|
|
|
@else
|
2022-05-15 11:34:02 +02:00
|
|
|
<img src="{{ asset('littlelink/images/logo.svg') }}" style="width: 75px; height: 75px; object-fit: cover;">
|
2021-07-06 10:53:14 +02:00
|
|
|
@endif
|
2021-04-16 01:00:00 +02:00
|
|
|
</div>
|
2021-07-06 10:53:14 +02:00
|
|
|
|
|
|
|
<!--<div class="form-group col-lg-8">
|
|
|
|
<label>Path name</label>
|
|
|
|
@<input type="text" class="form-control" name="pageName" value="{{ $page->littlelink_name ?? '' }}">
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
<div class="form-group col-lg-8">
|
2022-03-19 18:34:43 +01:00
|
|
|
<?php
|
|
|
|
$url = $_SERVER['REQUEST_URI'];
|
|
|
|
if( strpos( $url, "no_page_name" ) == true ) echo '<span style="color:#FF0000; font-size:120%;">You do not have a Page URL</span>'; ?>
|
|
|
|
<br>
|
2021-07-06 10:53:14 +02:00
|
|
|
<label>Page URL</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-prepend">
|
2022-02-27 19:33:19 +01:00
|
|
|
<div class="input-group-text">{{ url('') }}/@</div>
|
2021-07-06 10:53:14 +02:00
|
|
|
</div>
|
2022-07-07 12:16:06 +02:00
|
|
|
<input type="text" class="form-control" name="pageName" value="{{ $page->littlelink_name ?? '' }}" required>
|
2021-07-06 10:53:14 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
2021-07-06 10:53:14 +02:00
|
|
|
<label>Page Description</label>
|
2022-05-13 18:10:43 +02:00
|
|
|
<textarea class="form-control @if(env('ALLOW_USER_HTML') === true) ckeditor @endif" name="pageDescription" rows="3">{{ $page->littlelink_description ?? '' }}</textarea>
|
2021-04-16 01:00:00 +02:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
@endsection
|