+# V 0.2.4 Page
+
+## Changed
+- PageController:
+ - Mehrspaltendarstellung
+ - Trennung Layout Frontend/Backend
+ - edit: neu: reference_id
+
# V 0.2.3 MediaWiki
+## Changed
+
- Mediawiki: Korrekturen bei %date()% und %dateTime()%, %color()% umbenannt in %mark()%
# V 0.2.2 MediaWiki Page
class PageController extends Controller
{
- private function asPreview(Page &$page, ?string $contents = null): string
+ private function asHtml(Page &$page, ?string $contents = null): string
{
$contents ??= $page->contents;
$type = $page->markup_scope;
$optionsPagetype = SProperty::optionsByScope('pagetype', $page->pagetype_scope, '');
$optionsMarkup = SProperty::optionsByScope('markup', $page->markup_scope, '');
$optionsLanguage = SProperty::optionsByScope('localization', $page->language_scope, '');
- $preview = $this->asPreview($page);
+ $preview = $this->asHtml($page);
$fields = $request->btnSubmit !== 'btnPreview' ? null : ['preview' => $preview];
$context = new ContextLaraKnife($request, $fields, $page);
$rc = view('page.edit', [
if ($request->btnSubmit === 'btnCancel') {
$rc = redirect('/page-index')->middleware('auth');
} else {
- $text = $this->asPreview($page);
- $link = $page->audio_id == null ? null : File::relativeFileLink($page->audio_id);
- $context = new ContextLaraKnife($request, ['text' => $text, 'link' => $link], $page);
- $rc = view('page.showcol1', [
- 'context' => $context,
- ]);
+ $textRaw = $page->contents;
+ $view = 'page.show-col1';
+ $audio = $page->audio_id == null ? null : File::relativeFileLink($page->audio_id);
+ $params = ['audio' => $audio];
+ if ($page->pagetype_scope != 2031/* chapter */) {
+ $columns = 1 + substr_count($textRaw, "\n---- %col%");
+ if ($columns <= 1) {
+ $params["text1"] = $this->asHtml($page);
+ } else {
+ $wiki = new MediaWiki();
+ $parts = explode("\n---- %col%", $textRaw, 4);
+ for ($no = 1; $no <= $columns; $no++) {
+ $params["text$no"] = $wiki->toHtml($parts[$no - 1]);
+ }
+ $view = "page.show-col$columns";
+ }
+ } else {
+ /* Chapter: */
+ $text1 = $this->asHtml($page);
+ $params['text1'] = $text1;
+ $text2 = null;
+ $lang = SProperty::idOfLocalization(auth()->user()->localization);
+ if (($page2 = Page::where(['reference_id' => $page->id, 'language_scope' => $lang])->first()) != null) {
+ $text2 = $this->asHtml($page2);
+ }
+ if ($text2 != null) {
+ $params['text2'] = $text2;
+ $view = 'page.text-col2';
+ }
+ }
+ $context = new ContextLaraKnife($request, $params, $page);
+ $rc = view($view, ['context' => $context]);
}
return $rc;
}
'context' => $context,
]);
} else {
- $params = [];
- $columns = $page->columns;
- if ($columns <= 1) {
- $params['text'] = $this->asPreview($page);
- } else {
- $cols = explode('----', $page->contents);
- for ($no = 1; $no <= $columns; $no++) {
- $params["text$no"] = $this->asPreview($page, $cols[$no - 1]);
- }
- }
- $context = new ContextLaraKnife($request, $params, $page);
- $rc = view("page.showcol$columns", [
- 'context' => $context,
- ]);
+ $rc = $this->showPretty($page, $request);
}
return $rc;
}
*/
public function update(Page $page, Request $request, array &$fields)
{
- $validator = Validator::make($fields, $this->rules(false));
+ $rules = $this->rules(false);
+ if ($fields['reference_id'] != null){
+ $rules['reference_id'] = 'exists:pages,id';
+ }
+ $validator = Validator::make($fields, $rules);
if ($validator->fails()) {
+ $errors = $validator->errors();
$rc = back()->withErrors($validator)->withInput();
} else {
$validated = $validator->validated();
'order',
'columns',
'audio_id',
- 'cacheof_id',
+ 'reference_id',
'owner_id'
];
}
"packages": [
{
"name": "brick/math",
- "version": "0.11.0",
+ "version": "0.12.1",
"source": {
"type": "git",
"url": "https://github.com/brick/math.git",
- "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478"
+ "reference": "f510c0a40911935b77b86859eb5223d58d660df1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478",
- "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478",
+ "url": "https://api.github.com/repos/brick/math/zipball/f510c0a40911935b77b86859eb5223d58d660df1",
+ "reference": "f510c0a40911935b77b86859eb5223d58d660df1",
"shasum": ""
},
"require": {
- "php": "^8.0"
+ "php": "^8.1"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.2",
- "phpunit/phpunit": "^9.0",
- "vimeo/psalm": "5.0.0"
+ "phpunit/phpunit": "^10.1",
+ "vimeo/psalm": "5.16.0"
},
"type": "library",
"autoload": {
"arithmetic",
"bigdecimal",
"bignum",
+ "bignumber",
"brick",
- "math"
+ "decimal",
+ "integer",
+ "math",
+ "mathematics",
+ "rational"
],
"support": {
"issues": "https://github.com/brick/math/issues",
- "source": "https://github.com/brick/math/tree/0.11.0"
+ "source": "https://github.com/brick/math/tree/0.12.1"
},
"funding": [
{
"type": "github"
}
],
- "time": "2023-01-15T23:15:59+00:00"
+ "time": "2023-11-29T23:19:16+00:00"
},
{
"name": "carbonphp/carbon-doctrine-types",
"dist": {
"type": "path",
"url": "../laraknife",
- "reference": "1947415cf873aba097bffffacc911a0c50c554bb"
+ "reference": "b903164d1c0f98b70657238210a55b05769cff3c"
},
"require-dev": {
"phpunit/phpunit": "11.0.x-dev"
},
{
"name": "ramsey/uuid",
- "version": "4.7.5",
+ "version": "4.7.6",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
- "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e"
+ "reference": "91039bc1faa45ba123c4328958e620d382ec7088"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
- "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
+ "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088",
+ "reference": "91039bc1faa45ba123c4328958e620d382ec7088",
"shasum": ""
},
"require": {
- "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11",
+ "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12",
"ext-json": "*",
"php": "^8.0",
"ramsey/collection": "^1.2 || ^2.0"
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
- "source": "https://github.com/ramsey/uuid/tree/4.7.5"
+ "source": "https://github.com/ramsey/uuid/tree/4.7.6"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2023-11-08T05:53:05+00:00"
+ "time": "2024-04-27T21:32:50+00:00"
},
{
"name": "spatie/laravel-permission",
$table->integer('language_scope');
$table->integer('columns')->default(1);
$table->foreignId('audio_id')->nullable()->references('id')->on('files');
- $table->foreignId('cacheof_id')->nullable()->references('id')->on('pages');
+ $table->foreignId('reference_id')->nullable()->references('id')->on('pages');
$table->foreignId('owner_id')->references('id')->on('users');
});
}
"Change of a Menu Item": "\u00c4ndern einer Men\u00fceintrags",
"Change of a Note": "\u00c4ndern einer Notiz",
"Change of a Noun": "\u00c4nderung eines Nomens",
+ "Change of a Page": "\u00c4ndern einer Seite",
"Change of a Phrase": "\u00c4nderung eines Satzes",
"Change of a Role": "\u00c4ndern einer Rolle",
"Change of a Scoped Property": "\u00c4ndern einer bereichsbasierten Eigenschaft",
"Change of an User": "\u00c4ndern eines Benutzers",
"Chapter": "Kapitel",
"Chapters": "Kapitel",
+ "Columns": "Spalten",
"Confirmation": "Best\u00e4tigung",
"Contents": "Inhalt",
"Creation of a Chapter": "Neues Kapitel",
"Creation of a File": "Hochladen einer Datei",
"Creation of a Menu Item": "Erstellen eine Men\u00fceintrags",
"Creation of a Note": "Erstellen einer Notiz",
- "Creation of a Page": "Neue Seite",
+ "Creation of a Page": "Erstellen einer Seite",
"Creation of a Role": "Erstellen eine Rolle",
"Creation of a Scoped Property": "Erzeugen einer bereichsbasierten Eigenschaft",
"Creation of a Term": "Erstellen eines Termins",
"Preview": "Vorschau",
"Privacy": "Datenschutz",
"Properties": "Eigenschaften",
+ "Reference": "Referenz",
"Remain signed in": "Angemeldet bleiben",
"Repetition": "Wiederholung",
"Role": "Rolle",
+++ /dev/null
-gadeku.blade.php
\ No newline at end of file
--- /dev/null
+<!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>
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
+ <link href="/css/laraknife.css" rel="stylesheet">
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
+ @vite(['resources/sass/app.scss', 'resources/js/app.js'])
+ <link href="/css/laraknife.css" rel="stylesheet">
+ <link href="/css/gadeku.css" rel="stylesheet">
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
+ <script src="/js/laraknife.js"></script>
+</head>
+<body>
+ <header>
+ <nav class="navbar navbar-expand-md bg-primary ">
+ <a class="navbar-brand" href="/menuitem-menu_main"><img id="img-logo" alt="Logo" src="img/logo_64.png"></a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarTop">
+ <ul class="navbar-nav mr-auto">
+ <li class="nav-item active">
+ <a class="nav-link" href="/page-showmenu/main">Start</a>
+ </li>
+ <li class="nav-item active">
+ <a class="nav-link" href="/menuitem-menu_main">Verwaltung</a>
+ </li>
+ <li>
+ <a class="nav-link" href="/public/doc/Impressum.pdf" target="_blank">{{ __('Imprint') }}</a>
+ </li>
+ <li>
+ <a class="nav-link" href="/public/doc/Datenschutz.pdf" target="_blank">{{ __('Privacy') }}</a>
+ </li>
+ </ul>
+ <ul class="navbar-nav mr-auto lkn-logout">
+ @auth
+ <li class="nav-item border rounded-3">
+ <a class="nav-link" href="/user-edit-current">{{ session('userName') }}</a>
+ </li>
+ @endauth
+ <li><a href="/user-logout" class="btn btn-success">{{ __('Logout') }}</a></li>
+ </ul>
+ </div>
+ </nav>
+ </header>
+ @yield('content')
+</body>
+</html>
+
--- /dev/null
+<!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>
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
+ <link href="/css/laraknife.css" rel="stylesheet">
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
+ @vite(['resources/sass/app.scss', 'resources/js/app.js'])
+ <link href="/css/laraknife.css" rel="stylesheet">
+ <link href="/css/gadeku.css" rel="stylesheet">
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
+ <script src="/js/laraknife.js"></script>
+</head>
+<body class="lkn-text-frame-background">
+ <header>
+ <nav class="navbar navbar-expand-md bg-primary ">
+ <a class="navbar-brand" href="/menuitem-menu_main"><img id="img-logo" alt="Logo" src="img/logo_64.png"></a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarTop">
+ <ul class="navbar-nav mr-auto">
+ <li class="nav-item active">
+ <a class="nav-link" href="/page-showmenu/main">Start</a>
+ </li>
+ <li class="nav-item active">
+ <a class="nav-link" href="/menuitem-menu_main">Verwaltung</a>
+ </li>
+ <li>
+ <a class="nav-link" href="/public/doc/Impressum.pdf" target="_blank">{{ __('Imprint') }}</a>
+ </li>
+ <li>
+ <a class="nav-link" href="/public/doc/Datenschutz.pdf" target="_blank">{{ __('Privacy') }}</a>
+ </li>
+ </ul>
+ <ul class="navbar-nav mr-auto lkn-logout">
+ @auth
+ <li class="nav-item border rounded-3">
+ <a class="nav-link" href="/user-edit-current">{{ session('userName') }}</a>
+ </li>
+ @endauth
+ <li><a href="/user-logout" class="btn btn-success">{{ __('Logout') }}</a></li>
+ </ul>
+ </div>
+ </nav>
+ </header>
+ @yield('content')
+</body>
+</html>
+
+++ /dev/null
-<!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>
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
- <link href="/css/laraknife.css" rel="stylesheet">
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
- @vite(['resources/sass/app.scss', 'resources/js/app.js'])
- <link href="/css/laraknife.css" rel="stylesheet">
- <link href="/css/gadeku.css" rel="stylesheet">
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
- <script src="/js/laraknife.js"></script>
-</head>
-<body>
- <header>
- <nav class="navbar navbar-expand-md bg-primary ">
- <a class="navbar-brand" href="/menuitem-menu_main"><img id="img-logo" alt="Logo" src="img/logo_64.png"></a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarTop">
- <ul class="navbar-nav mr-auto">
- <li class="nav-item active">
- <a class="nav-link" href="/page-showmenu/main">Start</a>
- </li>
- <li class="nav-item active">
- <a class="nav-link" href="/menuitem-menu_main">Verwaltung</a>
- </li>
- <li>
- <a class="nav-link" href="/public/doc/Impressum.pdf" target="_blank">{{ __('Imprint') }}</a>
- </li>
- <li>
- <a class="nav-link" href="/public/doc/Datenschutz.pdf" target="_blank">{{ __('Privacy') }}</a>
- </li>
- </ul>
- <ul class="navbar-nav mr-auto lkn-logout">
- @auth
- <li class="nav-item border rounded-3">
- <a class="nav-link" href="/user-edit-current">{{ session('userName') }}</a>
- </li>
- @endauth
- <li><a href="/user-logout" class="btn btn-success">{{ __('Logout') }}</a></li>
- </ul>
- </div>
- </nav>
- </header>
- @yield('content')
-</body>
-</html>
-
value="{{ $context->valueOf('columns') }}" width2="4" />
<x-laraknife.forms.string type="number" position="last" name="order" label="Order"
value="{{ $context->valueOf('order') }}" width2="4" />
- <x-laraknife.forms.combobox position="alone" name="language_scope" label="Language" :options="$optionsLanguage"
+ <x-laraknife.forms.combobox position="first" name="language_scope" label="Language" :options="$optionsLanguage"
width2="4" attribute="readonly" />
+ <x-laraknife.forms.string type="number" position="last" name="reference_id" label="Reference"
+ value="{{ $context->valueOf('reference_id') }}" width2="4" />
<x-laraknife.forms.string position="first" name="title" label="Title"
value="{{ $context->valueOf('title') }}" width2="4" />
<x-laraknife.forms.string position="last" name="name" label="Name (URL)"
<thead>
<tr>
<th></th>
+ <th sortId="id">{{__('Id')}}</th>
<th sortId="title">{{__('Title')}}</th>
<th sortId="pagetype">{{__('Pagetype')}}</th>
<th sortId="markup">{{__('Markup')}}</th>
@foreach ($records as $page)
<tr>
<td><x-laraknife.icons.change-record module="page" no="{{ $page->id }}" /></td>
+ <td> {{ __($page->id) }}</td>
<td><a href="/page-showpretty/{{ $page->id }}">{{$page->title}}</a></td>
<td> {{ __($page->pagetype) }}</td>
<td> {{ __($page->markup) }}</td>
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <div class="lkn-text">
+ {!! $context->valueOf('text') !!}
+ </div>
+ </x-laraknife.panels.text-area>
+ @if ($context->valueof('link') != null)
+ <div class="row">
+ <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
+ </div>
+ @endif
+ </form>
+@endsection
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <div class="lkn-text">
+ <div class="row">
+ <div class="col-md-6">
+ {!! $context->valueOf('text1') !!}
+ </div>
+ <div class="col-md-6">
+ {!! $context->valueOf('text2') !!}
+ </div>
+ </div>
+ </div>
+ </x-laraknife.panels.text-area>
+ @if ($context->valueof('audio') != null)
+ <div class="row">
+ <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('audio') }}" />
+ </div>
+ @endif
+ </form>
+@endsection
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <div class="lkn-text">
+ <div class="row">
+ <div class="col-md-4">
+ {!! $context->valueOf('text1') !!}
+ </div>
+ <div class="col-md-4">
+ {!! $context->valueOf('text2') !!}
+ </div>
+ <div class="col-md-4">
+ {!! $context->valueOf('text3') !!}
+ </div>
+ </div>
+ </div>
+ </x-laraknife.panels.text-area>
+ @if ($context->valueof('audio') != null)
+ <div class="row">
+ <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('audio') }}" />
+ </div>
+ @endif
+ </form>
+@endsection
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <div class="lkn-text">
+ <div class="row">
+ <div class="col-md-3">
+ {!! $context->valueOf('text1') !!}
+ </div>
+ <div class="col-md-3">
+ {!! $context->valueOf('text2') !!}
+ </div>
+ <div class="col-md-3">
+ {!! $context->valueOf('text3') !!}
+ </div>
+ <div class="col-md-3">
+ {!! $context->valueOf('text4') !!}
+ </div>
+ </div>
+ </div>
+ </x-laraknife.panels.text-area>
+ @if ($context->valueof('link') != null)
+ <div class="row">
+ <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
+ </div>
+ @endif
+ </form>
+@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.noform-text title="{{ $context->valueof('title') }}">
- <div class="row">
- {!! $context->valueOf('text') !!}
- </div>
- </x-laraknife.panels.noform-text>
- @if ($context->valueof('link') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
- </div>
- @endif
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.noform-text title="{{ $context->valueof('title') }}">
- <div class="row">
- <div class="col-md-6">
- {!! $context->valueOf('text1') !!}
- </div>
- <div class="col-md-6">
- {!! $context->valueOf('text2') !!}
- </div>
- </div>
- </x-laraknife.panels.noform-text>
- @if ($context->valueof('link') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
- </div>
- @endif
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.noform-text title="{{ $context->valueof('title') }}">
- <div class="row">
- <div class="col-md-4">
- {!! $context->valueOf('text1') !!}
- </div>
- <div class="col-md-4">
- {!! $context->valueOf('text2') !!}
- </div>
- <div class="col-md-4">
- {!! $context->valueOf('text3') !!}
- </div>
- </div>
- </x-laraknife.panels.noform-text>
- @if ($context->valueof('link') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
- </div>
- @endif
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.noform-text title="{{ $context->valueof('title') }}">
- <div class="row">
- <div class="col-md-3">
- {!! $context->valueOf('text1') !!}
- </div>
- <div class="col-md-3">
- {!! $context->valueOf('text2') !!}
- </div>
- <div class="col-md-3">
- {!! $context->valueOf('text3') !!}
- </div>
- <div class="col-md-3">
- {!! $context->valueOf('text4') !!}
- </div>
- </div>
- </x-laraknife.panels.noform-text>
- @if ($context->valueof('link') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
- </div>
- @endif
- </form>
-@endsection
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <div class="row">
+ <div class="col-md-6">
+ <div class="lkn-text">
+ {!! $context->valueOf('text1') !!}
+ </div>
+ </div>
+ <div class="col-md-6">
+ <div class="lkn-text">
+ {!! $context->valueOf('text2') !!}
+ </div>
+ </div>
+ </div>
+ </x-laraknife.panels.text-area>
+ @if ($context->valueof('audio') != null)
+ <div class="row">
+ <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('audio') }}" />
+ </div>
+ @endif
+ </form>
+@endsection