Skip to content

Commit edc43cd

Browse files
committed
fix: admin
1 parent ed8fe1d commit edc43cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/views/components/backend/ui/recent-update-invoice.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@foreach ($recentInvoices as $invoice)
1919
@php
2020
$color = 'dark';
21+
if (isset($invoice->currentFiscal[0])) {
2122
switch ($invoice->currentFiscal[0]->pivot->status) {
2223
case 'sent':
2324
$color = 'success';
@@ -36,6 +37,7 @@
3637
# code...
3738
break;
3839
}
40+
}
3941
@endphp
4042
<div class="latest-items mb-2" style="width: clamp(160px, 190px, 220px);">
4143
<div class="card h-100 shadow border-top">

0 commit comments

Comments
 (0)