From e33dd43dc2572097938345444a27b4537cf862b3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 19:14:46 -0600 Subject: [PATCH] Update admin views --- resources/views/admin/apps/home.blade.php | 4 ++- resources/views/admin/home.blade.php | 6 ++-- resources/views/admin/messages/home.blade.php | 36 +++++++++++++++++++ .../views/admin/partial/topnav.blade.php | 5 +-- 4 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 resources/views/admin/messages/home.blade.php diff --git a/resources/views/admin/apps/home.blade.php b/resources/views/admin/apps/home.blade.php index 8aaeb1170..aa8dfc0f2 100644 --- a/resources/views/admin/apps/home.blade.php +++ b/resources/views/admin/apps/home.blade.php @@ -17,7 +17,8 @@
- +
+
@@ -45,4 +46,5 @@ @endforeach
#
+ @endsection \ No newline at end of file diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index 31d882b5f..4e49f5655 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -11,10 +11,10 @@
-

Alerts

-

0

+

New Messages

+

{{$data['contact']['count']}}

- +
diff --git a/resources/views/admin/messages/home.blade.php b/resources/views/admin/messages/home.blade.php new file mode 100644 index 000000000..ee0b86e6e --- /dev/null +++ b/resources/views/admin/messages/home.blade.php @@ -0,0 +1,36 @@ +@extends('admin.partial.template-full') + +@section('section') +
+

Messages

+
+ +
+
+ + + + + + + + + + + @foreach($messages as $msg) + + + + + + + @endforeach + +
#UserMessageCreated
+ + {{$msg->id}} + + {{$msg->user->username}}{{str_limit($msg->message, 40)}}{{$msg->created_at->diffForHumans()}}
+
+{{$messages->links()}} +@endsection \ No newline at end of file diff --git a/resources/views/admin/partial/topnav.blade.php b/resources/views/admin/partial/topnav.blade.php index 2e4ad6918..2a6ee4952 100644 --- a/resources/views/admin/partial/topnav.blade.php +++ b/resources/views/admin/partial/topnav.blade.php @@ -8,8 +8,8 @@ -