File tree Expand file tree Collapse file tree 5 files changed +29
-0
lines changed
resources/views/templates Expand file tree Collapse file tree 5 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 6565
6666 'disk ' => 'local ' ,
6767
68+ 'status ' => 'Due ' ,
69+
6870 'seller ' => [
6971 /**
7072 * Class used in templates via $invoice->seller
Original file line number Diff line number Diff line change 123123 .border-0 {
124124 border : none !important ;
125125 }
126+
126127 .description {
127128 margin-top : 0.25rem ;
128129 margin-bottom : 0 ;
129130 color : #999 ;
130131 }
132+
133+ .status {
134+ color : #999 ;
135+ font-size : 2rem ;
136+ font-weight : bold ;
137+ text-transform : uppercase ;
138+ }
131139 </style >
132140 </head >
133141
145153 </h4 >
146154 </td >
147155 <td class =" border-0 pl-0" >
156+ <p class =" status" >{{ $invoice -> status } } </p >
148157 <p >{{ __ (' invoices::invoice.serial' ) } } <strong >{{ $invoice -> getSerialNumber () } } </strong ></p >
149158 <p >{{ __ (' invoices::invoice.date' ) } } : <strong >{{ $invoice -> getDate () } } </strong ></p >
150159 </td >
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ class Invoice
6565 */
6666 public $ notes ;
6767
68+ /**
69+ * @var string
70+ */
71+ public $ status ;
72+
6873 /**
6974 * @var string
7075 */
@@ -155,6 +160,8 @@ public function __construct($name = 'Invoice')
155160 $ this ->items = Collection::make ([]);
156161 $ this ->template = 'default ' ;
157162
163+ $ this ->status = config ('invoices.status ' );
164+
158165 // Date
159166 $ this ->date = Carbon::now ();
160167 $ this ->date_format = config ('invoices.date.format ' );
Original file line number Diff line number Diff line change @@ -24,6 +24,17 @@ public function name(string $name)
2424 return $ this ;
2525 }
2626
27+ /**
28+ * @param string $status
29+ * @return $this
30+ */
31+ public function status (string $ status )
32+ {
33+ $ this ->status = $ status ;
34+
35+ return $ this ;
36+ }
37+
2738 public function notes (string $ notes )
2839 {
2940 $ this ->notes = $ notes ;
You can’t perform that action at this time.
0 commit comments