Webseite ohne Anmeldung läuft auf laravel

This commit is contained in:
Robert
2024-01-17 12:43:56 +01:00
parent 57a4470de3
commit bab5bfd58e
435 changed files with 37238 additions and 91 deletions

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>7a</title>
</head>
<body>
Der Wert von name lautet: {{$request}}
</body>
</html>

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Beispiel: Daten aus der Datenbank</title>
<style>
h1 {
font-weight: 300;
}
</style>
</head>
<body>
@if (isset($data['error']))
<h1>Es gab ein Problem mit der Datenbankverbindung</h1>
<p>Fehlermeldung</p>
<pre> {{$data['beschreibung']}}</pre>
@else
<?php
$zweites = false; ?>
<article>
<h1>Daten aus der Datenbank der Tabelle: Kategorien</h1>
<ul>
@forelse($data as $a)
@if($zweites) <h1><li>{{$a['name']}}</li></h1> <?php $zweites = false; ?>
@else
<li>{{$a['name']}}</li> <?php $zweites = true; ?>
@endif
@empty
<li>Keine Daten vorhanden.</li>
@endforelse
</ul>
</article>
@endif
</body>
</html>

View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Beispiel: Daten aus der Datenbank</title>
</head>
<body>
@if (isset($data['error']))
<h1>Es gab ein Problem mit der Datenbankverbindung</h1>
<p>Fehlermeldung</p>
<pre> {{$data['beschreibung']}}</pre>
@else
<article>
<h1>Daten aus der Datenbank der Tabelle: Kategorien</h1>
<ul>
@forelse($data as $a)
@if(!empty($a['name']))
<li>{{$a['name']}}</li>
@endif
@empty
<li>Es sind keine Gerichte vorhanden</li>
@endforelse
</ul>
</article>
@endif
</body>
</html>

View File

@@ -0,0 +1,13 @@
@extends(".layouts.m4_7d_layout",['title' => "Page 1"])
@section("header")
@endsection
@section("body")
<p>Page 1</p>
@endsection
@section("footer")
<p>Footer of Page 1</p>
@endsection

View File

@@ -0,0 +1,13 @@
@extends(".layouts.m4_7d_layout",['title' => "Page 2"])
@section("header")
@endsection
@section("body")
<p>Page 2</p>
@endsection
@section("footer")
<p>Footer of Page 2</p>
@endsection