From cdd9fcf7bf49e4468c2290e30a98c6730a334900 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 2 Nov 2020 17:45:41 +0100 Subject: News system finished... --- resources/views/pages/news-admin.blade.php | 73 ++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 resources/views/pages/news-admin.blade.php (limited to 'resources/views/pages/news-admin.blade.php') diff --git a/resources/views/pages/news-admin.blade.php b/resources/views/pages/news-admin.blade.php new file mode 100644 index 0000000..55c94e6 --- /dev/null +++ b/resources/views/pages/news-admin.blade.php @@ -0,0 +1,73 @@ +@extends('layouts.app') + +@section('title', 'News administration') + +@section('navbar', View::make('inc.navbar')) + +@section('content') +

News Administration:

+ @if (session('statusE')) +
+ {{ session('statusE') }} +
+ @endif + @if (count($data) > 0) +
+ + @foreach ($data as $row) + + + + + + @endforeach +
{{ $row->title }}EditDelete
+
+ @else + There are currently no callsigns. + @endif + +

Add Post:

+ @if (session('status')) +
+ {{ session('status') }} +
+ @endif +
+ @csrf +
+ + + @error('title') +
{{ $message }}
+ @enderror +
+ +
+ + +
+ +
+ + + @error('text') +
{{ $message }}
+ @enderror +
+ +
+ +
+
+@endsection + +@section('scripts') + + +@endsection -- cgit v1.2.3