2022-09-08 15:06:44 -04:00

21 lines
600 B
PHP

@extends('layouts.app')
@php
if(isset($id) && $component == "templates") {
$component = (isset($group) ? "{$group}-{$component}-" : "").$id;
$title = __("{$id}" );
} else {
$component = (isset($group) ? "{$group}-" : "").$component;
$title = __("{$component}" );
}
if(strpos($title, 'page-titles.') !== false) {
$title = "404 Page Not Found";
}
@endphp
@section('title')
{{ $title }} | {{ config('app.name', 'Skote') }}
@endsection
@section('content')
<dynamic-component component="{{ $component }}" id="{{ $id ?? "" }}" />
@endsection