Commit 3ab8aaf 1 parent d6bce93 commit 3ab8aaf Copy full SHA for 3ab8aaf
File tree 1 file changed +11
-10
lines changed
resources/views/components/backend/ui
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 31
31
case ' overdue' :
32
32
$color = ' danger' ;
33
33
break ;
34
-
34
+
35
35
default :
36
36
# code...
37
37
break ;
41
41
<div class =" card h-100 shadow border-top" >
42
42
<div class =" card-body" >
43
43
<h5 >ID:{{ $invoice -> id } } </h5 >
44
- <h5 >{{ str ($invoice -> client -> name )-> title () } } <br > <span
45
- class =" text-muted fw-normal fs-6" >Company:
44
+ <h5 >{{ str ($invoice -> client -> name )-> title () } } <br > <span class =" text-muted fw-normal fs-6" >Company:
46
45
{{ str ($invoice -> client -> company_name )-> title () } } </span ></h5 >
47
- <p class =' text-muted mb-0' >Issued:
48
- {{ Carbon \Carbon:: parse ($invoice -> currentFiscal [0 ]-> pivot -> issue_date )-> format (' d F, Y' ) } }
49
- </p >
50
- <p class =' text-muted mb-0' >Due:
51
- {{ Carbon \Carbon:: parse ($invoice -> currentFiscal [0 ]-> pivot -> due_date )-> format (' d F, Y' ) } }
52
- </p >
46
+ @isset ($invoice -> currentFiscal [0 ] )
47
+ <p class =' text-muted mb-0' >Issued:
48
+ {{ Carbon \Carbon:: parse ($invoice -> currentFiscal [0 ]-> pivot -> issue_date )-> format (' d F, Y' ) } }
49
+ </p >
50
+ <p class =' text-muted mb-0' >Due:
51
+ {{ Carbon \Carbon:: parse ($invoice -> currentFiscal [0 ]-> pivot -> due_date )-> format (' d F, Y' ) } }
52
+ </p >
53
+ @endisset
53
54
</div >
54
55
<div
55
56
class =" bg-soft-{{ $color } } text-{{ $color } } w-100 p-1 text-center fw-bold rounded-bottom" >
@@ -58,4 +59,4 @@ class="bg-soft-{{ $color }} text-{{ $color }} w-100 p-1 text-center fw-bold roun
58
59
</div >
59
60
</div >
60
61
@endforeach
61
- </div >
62
+ </div >
You can’t perform that action at this time.
0 commit comments