Commit 0328e6c 1 parent 2555f64 commit 0328e6c Copy full SHA for 0328e6c
File tree 2 files changed +44
-17
lines changed
resources/views/backend/invoice
2 files changed +44
-17
lines changed Original file line number Diff line number Diff line change 132
132
@method (' PATCH' )
133
133
<div >
134
134
<div class =" row" >
135
+ @isset ($basic -> header_image )
135
136
<div class =" d-flex border my-5 justify-content-center" >
136
137
<img style =" object-fit : cover ; max-width :1240px ;height :250px ;"
137
138
src =" {{ asset (' storage/' . app (' setting' )-> basic -> header_image ) } }" alt =" " >
138
139
</div >
140
+ @else
141
+ <div class =" p-5 text-center" >
142
+ No Header Image found
143
+ </div >
144
+ @endisset
139
145
</div >
140
146
<div class =" row" >
141
147
<div class =" col-sm-4 col-md-3" >
202
208
203
209
</div >
204
210
<div class =" row" >
205
- <div class =" d-flex border my-5 justify-content-center" >
211
+ @isset (app (' setting' )-> basic -> footer_image )
212
+ <div class =" d-flex border my-2 justify-content-center" >
206
213
<img style =" object-fit : cover ; max-width :1240px ;height :250px ;"
207
214
src =" {{ asset (' storage/' . app (' setting' )-> basic -> footer_image ) } }" alt =" " >
208
215
</div >
216
+
217
+ @else
218
+ <div class =" p-5 text-center" >
219
+ No Footer Image found
220
+ </div >
221
+ @endisset
209
222
</div >
210
223
211
224
<button id =" submit-btn" type =" submit"
Original file line number Diff line number Diff line change 130
130
<button class =" btn btn-primary waves-effect waves-light m-2 d-print-none d-block" id =" cmd" >Print</button >
131
131
</div >
132
132
<div >
133
- <div class =" row" >
134
- <div class =" d-flex border my-2 justify-content-center" >
135
- <img style =" object-fit : cover ; max-width :1240px ;height :250px ;" src =" {{ asset (' storage/' . app (' setting' )-> basic -> header_image )} }" alt =" " >
136
- </div >
133
+ <div class =" row" >
134
+ @isset ($basic -> header_image )
135
+ <div class =" d-flex border my-5 justify-content-center" >
136
+ <img style =" object-fit : cover ; max-width :1240px ;height :250px ;"
137
+ src =" {{ asset (' storage/' . app (' setting' )-> basic -> header_image ) } }" alt =" " >
137
138
</div >
139
+ @else
140
+ <div class =" p-5 text-center" >
141
+ No Header Image found
142
+ </div >
143
+ @endisset
144
+ </div >
138
145
<div class =" row table-col" >
139
146
<div class =" col-sm-4 col-md-3 table-cell" >
140
147
<div class =" pe-2 mb-2" >
191
198
</div >
192
199
@php
193
200
$color = ' dark' ;
194
- switch (
195
- $invoice
196
- -> fiscalYears ()
197
- -> where (' year' , $year )
198
- -> first ()-> pivot -> status
199
- ) {
201
+ switch ($invoice -> fiscalYears ()-> where (' year' , $year )-> first ()-> pivot -> status ) {
200
202
case ' sent' :
201
203
$color = ' #1abc9c' ;
202
204
break ;
209
211
case ' overdue' :
210
212
$color = ' #f1556c' ;
211
213
break ;
212
-
214
+
213
215
default :
214
216
# code...
215
217
break ;
413
415
</div >
414
416
</div >
415
417
<div class =" row" >
418
+ @isset (app (' setting' )-> basic -> footer_image )
416
419
<div class =" d-flex border my-2 justify-content-center" >
417
- <img style =" object-fit : cover ; max-width :1240px ;height :250px ;" src =" {{ asset (' storage/' . app (' setting' )-> basic -> footer_image )} }" alt =" " >
420
+ <img style =" object-fit : cover ; max-width :1240px ;height :250px ;"
421
+ src =" {{ asset (' storage/' . app (' setting' )-> basic -> footer_image ) } }" alt =" " >
418
422
</div >
423
+
424
+ @else
425
+ <div class =" p-5 text-center" >
426
+ No Footer Image found
427
+ </div >
428
+ @endisset
419
429
</div >
420
430
421
431
425
435
@if (session ()-> has (' print' ) )
426
436
@push (' customJs' )
427
437
<script >
428
- $ (document ).ready (function () {
429
- window .print ()
430
- });
438
+ $ (document ).ready (function () {
439
+ setTimeout (() => {
440
+ window .print ()
441
+ }, 3000 );
442
+ });
431
443
</script >
432
444
@endpush
433
445
@endif
434
446
@push (' customJs' )
435
447
<script >
436
448
$ (' #cmd' ).on (' click' , function () {
437
- window .print ()
449
+ setTimeout (() => {
450
+ window .print ()
451
+ }, 3000 );
438
452
})
439
453
</script >
440
454
@endpush
You can’t perform that action at this time.
0 commit comments