From 5c2ad8cccb76a14bb51d6ea09a6b2df39cfef93b Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 21 Jan 2018 19:48:30 -0500 Subject: [PATCH] Only show the export button in the dashboard when more than one entry exists for the given model --- resources/views/dashboard/edit-list.blade.php | 2 +- resources/views/dashboard/view.blade.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/dashboard/edit-list.blade.php b/resources/views/dashboard/edit-list.blade.php index 9d4daa0..f1c181a 100644 --- a/resources/views/dashboard/edit-list.blade.php +++ b/resources/views/dashboard/edit-list.blade.php @@ -1,7 +1,7 @@ @extends('dashboard.core') @section('dashboard-heading') - @if($export) + @if($export && count($rows) > 0) @endif diff --git a/resources/views/dashboard/view.blade.php b/resources/views/dashboard/view.blade.php index 4850f23..971e4f9 100644 --- a/resources/views/dashboard/view.blade.php +++ b/resources/views/dashboard/view.blade.php @@ -1,7 +1,9 @@ @extends('dashboard.core') @section('dashboard-heading') - + @if(count($rows) > 0) + + @endif @endsection @section('dashboard-body')