mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 08:51:25 -05:00
Only show the export button in the dashboard when more than one entry exists for the given model
This commit is contained in:
parent
f489d3724f
commit
5c2ad8cccb
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
@extends('dashboard.core')
|
@extends('dashboard.core')
|
||||||
|
|
||||||
@section('dashboard-heading')
|
@section('dashboard-heading')
|
||||||
@if($export)
|
@if($export && count($rows) > 0)
|
||||||
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-default">Export</button></a>
|
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-default">Export</button></a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
@extends('dashboard.core')
|
@extends('dashboard.core')
|
||||||
|
|
||||||
@section('dashboard-heading')
|
@section('dashboard-heading')
|
||||||
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-default">Export</button></a>
|
@if(count($rows) > 0)
|
||||||
|
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-default">Export</button></a>
|
||||||
|
@endif
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('dashboard-body')
|
@section('dashboard-body')
|
||||||
|
|
Loading…
Reference in a new issue