Skip to content

Commit 7a26449

Browse files
committed
Update links.blade.php
1 parent 02317d5 commit 7a26449

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

resources/views/studio/links.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@
6868

6969
<div style="overflow-y: none;" class="col col-md-7 ms-3">
7070

71-
7271
<div id="links-table-body" data-page="{{request('page', 1)}}" data-per-page="{{$pagePage ? $pagePage : 0}}">
72+
@if($links->total() == 0)
73+
<div class="col-6 text-center">
74+
<p class="mt-5">You haven't added any links yet.</p>
75+
</div>
76+
@else
7377
@foreach($links as $link)
7478
@php $button = Button::find($link->button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} @endphp
7579
@php if($buttonName == "default email"){$buttonName = "email";} if($buttonName == "default email_alt"){$buttonName = "email_alt";} @endphp
@@ -181,6 +185,7 @@
181185
</div>
182186
@endif
183187
@endforeach
188+
@endif
184189
</div>
185190

186191

0 commit comments

Comments
 (0)