|
10 | 10 | <tbody> |
11 | 11 | <tr> |
12 | 12 | <td class="p-0 align-top"> |
13 | | - <h1 class="mb-1 text-3xl"> |
| 13 | + <h1 class="mb-1 text-2xl"> |
14 | 14 | <strong>{{ $invoice->name }}</strong> |
15 | 15 | </h1> |
16 | 16 | @if ($invoice->state) |
|
21 | 21 |
|
22 | 22 | <table class="w-full"> |
23 | 23 | <tbody> |
24 | | - <tr class=""> |
25 | | - <td class="whitespace-nowrap pb-1 pr-2"> |
| 24 | + <tr class="text-sm"> |
| 25 | + <td class="whitespace-nowrap pr-2"> |
26 | 26 | <strong>{{ __('invoices::invoice.serial_number') }} </strong> |
27 | 27 | </td> |
28 | | - <td class="pb-1" width="100%"> |
| 28 | + <td class="" width="100%"> |
29 | 29 | <strong>{{ $invoice->serial_number }}</strong> |
30 | 30 | </td> |
31 | 31 | </tr> |
32 | | - <tr class="text-sm"> |
33 | | - <td class="whitespace-nowrap pb-1 pr-2"> |
| 32 | + <tr class="text-xs"> |
| 33 | + <td class="whitespace-nowrap pr-2"> |
34 | 34 | {{ __('invoices::invoice.created_at') }} |
35 | 35 | </td> |
36 | | - <td class="pb-1" width="100%"> |
| 36 | + <td class="" width="100%"> |
37 | 37 | {{ $invoice->created_at?->format(config('invoices.date_format')) }} |
38 | 38 | </td> |
39 | 39 | </tr> |
40 | 40 | @if ($invoice->due_at) |
41 | | - <tr class="text-sm"> |
42 | | - <td class="whitespace-nowrap pb-1 pr-2"> |
| 41 | + <tr class="text-xs"> |
| 42 | + <td class="whitespace-nowrap pr-2"> |
43 | 43 | {{ __('invoices::invoice.due_at') }} |
44 | 44 | </td> |
45 | | - <td class="pb-1" width="100%"> |
| 45 | + <td class="" width="100%"> |
46 | 46 | {{ $invoice->due_at->format(config('invoices.date_format')) }} |
47 | 47 | </td> |
48 | 48 | </tr> |
49 | 49 | @endif |
50 | 50 | @if ($invoice->paid_at) |
51 | | - <tr class="text-sm"> |
52 | | - <td class="whitespace-nowrap pb-1 pr-2"> |
| 51 | + <tr class="text-xs"> |
| 52 | + <td class="whitespace-nowrap pr-2"> |
53 | 53 | {{ __('invoices::invoice.paid_at') }} |
54 | 54 | </td> |
55 | | - <td class="pb-1" width="100%"> |
| 55 | + <td class="" width="100%"> |
56 | 56 | {{ $invoice->paid_at->format(config('invoices.date_format')) }} |
57 | 57 | </td> |
58 | 58 | </tr> |
|
86 | 86 | $tax_number = data_get($invoice->seller, 'tax_number'); |
87 | 87 | $company_number = data_get($invoice->seller, 'company_number'); |
88 | 88 | @endphp |
89 | | - <p class="pb-1"><strong>{{ __('invoices::invoice.from') }}</strong></p> |
| 89 | + <p class="pb-1 text-sm"><strong>{{ __('invoices::invoice.from') }}</strong></p> |
90 | 90 | @if ($name) |
91 | | - <p class="pb-1 text-sm">{{ $name }}</p> |
| 91 | + <p class="pb-1 text-xs">{{ $name }}</p> |
92 | 92 | @endif |
93 | 93 | @if ($street) |
94 | | - <p class="pb-1 text-sm">{{ $street }}</p> |
| 94 | + <p class="pb-1 text-xs">{{ $street }}</p> |
95 | 95 | @endif |
96 | 96 | @if ($postal_code || $city) |
97 | | - <p class="pb-1 text-sm"> |
| 97 | + <p class="pb-1 text-xs"> |
98 | 98 | {{ $postal_code }} |
99 | 99 | {{ $city }} |
100 | 100 | </p> |
101 | 101 | @endif |
102 | 102 | @if ($state) |
103 | | - <p class="pb-1 text-sm">{{ $state }}</p> |
| 103 | + <p class="pb-1 text-xs">{{ $state }}</p> |
104 | 104 | @endif |
105 | 105 | @if ($country) |
106 | | - <p class="pb-1 text-sm">{{ $country }}</p> |
| 106 | + <p class="pb-1 text-xs">{{ $country }}</p> |
107 | 107 | @endif |
108 | 108 | @if ($email) |
109 | | - <p class="pb-1 text-sm">{{ $email }}</p> |
| 109 | + <p class="pb-1 text-xs">{{ $email }}</p> |
110 | 110 | @endif |
111 | 111 | @if ($phone_number) |
112 | | - <p class="pb-1 text-sm">{{ $phone_number }}</p> |
| 112 | + <p class="pb-1 text-xs">{{ $phone_number }}</p> |
113 | 113 | @endif |
114 | 114 | @if ($tax_number) |
115 | | - <p class="pb-1 text-sm">{{ $tax_number }}</p> |
| 115 | + <p class="pb-1 text-xs">{{ $tax_number }}</p> |
116 | 116 | @endif |
117 | 117 | @if ($company_number) |
118 | | - <p class="pb-1 text-sm">{{ $company_number }}</p> |
| 118 | + <p class="pb-1 text-xs">{{ $company_number }}</p> |
119 | 119 | @endif |
120 | 120 | @foreach (data_get($invoice->seller, 'data') ?? [] as $key => $item) |
121 | 121 | @if (is_string($key)) |
122 | | - <p class="pb-1 text-sm">{{ $key }}: {{ $item }}</p> |
| 122 | + <p class="pb-1 text-xs">{{ $key }}: {{ $item }}</p> |
123 | 123 | @else |
124 | | - <p class="pb-1 text-sm">{{ $item }}</p> |
| 124 | + <p class="pb-1 text-xs">{{ $item }}</p> |
125 | 125 | @endif |
126 | 126 | @endforeach |
127 | 127 | </td> |
|
138 | 138 | $tax_number = data_get($invoice->buyer, 'tax_number'); |
139 | 139 | $company_number = data_get($invoice->buyer, 'company_number'); |
140 | 140 | @endphp |
141 | | - <p class="pb-1"><strong>{{ __('invoices::invoice.to') }}</strong></p> |
| 141 | + <p class="pb-1 text-sm"><strong>{{ __('invoices::invoice.to') }}</strong></p> |
142 | 142 | @if ($name) |
143 | | - <p class="pb-1 text-sm">{{ $name }}</p> |
| 143 | + <p class="pb-1 text-xs">{{ $name }}</p> |
144 | 144 | @endif |
145 | 145 | @if ($street) |
146 | | - <p class="pb-1 text-sm">{{ $street }}</p> |
| 146 | + <p class="pb-1 text-xs">{{ $street }}</p> |
147 | 147 | @endif |
148 | 148 | @if ($postal_code || $city) |
149 | | - <p class="pb-1 text-sm"> |
| 149 | + <p class="pb-1 text-xs"> |
150 | 150 | {{ $postal_code }} |
151 | 151 | {{ $city }} |
152 | 152 | </p> |
153 | 153 | @endif |
154 | 154 | @if ($state) |
155 | | - <p class="pb-1 text-sm">{{ $state }}</p> |
| 155 | + <p class="pb-1 text-xs">{{ $state }}</p> |
156 | 156 | @endif |
157 | 157 | @if ($country) |
158 | | - <p class="pb-1 text-sm">{{ $country }}</p> |
| 158 | + <p class="pb-1 text-xs">{{ $country }}</p> |
159 | 159 | @endif |
160 | 160 | @if ($email) |
161 | | - <p class="pb-1 text-sm">{{ $email }}</p> |
| 161 | + <p class="pb-1 text-xs">{{ $email }}</p> |
162 | 162 | @endif |
163 | 163 | @if ($phone_number) |
164 | | - <p class="pb-1 text-sm">{{ $phone_number }}</p> |
| 164 | + <p class="pb-1 text-xs">{{ $phone_number }}</p> |
165 | 165 | @endif |
166 | 166 | @if ($tax_number) |
167 | | - <p class="pb-1 text-sm">{{ $tax_number }}</p> |
| 167 | + <p class="pb-1 text-xs">{{ $tax_number }}</p> |
168 | 168 | @endif |
169 | 169 | @if ($company_number) |
170 | | - <p class="pb-1 text-sm">{{ $company_number }}</p> |
| 170 | + <p class="pb-1 text-xs">{{ $company_number }}</p> |
171 | 171 | @endif |
172 | 172 | @foreach (data_get($invoice->seller, 'data') ?? [] as $key => $item) |
173 | 173 | @if (is_string($key)) |
174 | | - <p class="pb-1 text-sm">{{ $key }}: {{ $item }}</p> |
| 174 | + <p class="pb-1 text-xs">{{ $key }}: {{ $item }}</p> |
175 | 175 | @else |
176 | | - <p class="pb-1 text-sm">{{ $item }}</p> |
| 176 | + <p class="pb-1 text-xs">{{ $item }}</p> |
177 | 177 | @endif |
178 | 178 | @endforeach |
179 | 179 | </td> |
|
184 | 184 | <table class="mb-5 w-full"> |
185 | 185 | <thead> |
186 | 186 | <tr> |
187 | | - <th class="whitespace-nowrap border-b py-2 pr-2 text-left"> |
188 | | - {{ __('invoices::invoice.description') }}</th> |
189 | | - <th class="whitespace-nowrap border-b p-2 text-left">{{ __('invoices::invoice.quantity') }}</th> |
190 | | - <th class="whitespace-nowrap border-b p-2 text-left">{{ __('invoices::invoice.unit_price') }}</th> |
| 187 | + <th class="whitespace-nowrap border-b py-2 pr-2 text-left text-xs font-normal"> |
| 188 | + {{ __('invoices::invoice.description') }} |
| 189 | + </th> |
| 190 | + <th class="whitespace-nowrap border-b p-2 text-left text-xs font-normal"> |
| 191 | + {{ __('invoices::invoice.quantity') }} |
| 192 | + </th> |
| 193 | + <th class="whitespace-nowrap border-b p-2 text-left text-xs font-normal"> |
| 194 | + {{ __('invoices::invoice.unit_price') }} |
| 195 | + </th> |
191 | 196 | @if ($displayTaxColumn) |
192 | | - <th class="whitespace-nowrap border-b p-2 text-left">{{ __('invoices::invoice.tax') }}</th> |
| 197 | + <th class="whitespace-nowrap border-b p-2 text-left text-xs font-normal"> |
| 198 | + {{ __('invoices::invoice.tax') }} |
| 199 | + </th> |
193 | 200 | @endif |
194 | | - <th class="whitespace-nowrap border-b py-2 pl-2 text-right">{{ __('invoices::invoice.amount') }} |
| 201 | + <th class="whitespace-nowrap border-b py-2 pl-2 text-right text-xs font-normal"> |
| 202 | + {{ __('invoices::invoice.amount') }} |
195 | 203 | </th> |
196 | 204 | </tr> |
197 | 205 | </thead> |
198 | 206 | <tbody> |
199 | 207 | @foreach ($invoice->items as $item) |
200 | 208 | <tr> |
201 | 209 | <td @class(['align-top py-2 pr-2', 'border-b' => !$loop->last])> |
202 | | - <p class="text-sm"><strong>{{ $item->label }}</strong></p> |
| 210 | + <p class="text-xs"><strong>{{ $item->label }}</strong></p> |
203 | 211 | @if ($item->description) |
204 | | - <p class="pt-1 text-sm">{{ $item->description }}</p> |
| 212 | + <p class="pt-1 text-xs">{{ $item->description }}</p> |
205 | 213 | @endif |
206 | 214 | </td> |
207 | | - <td class="whitespace-nowrap border-b p-2 align-top text-sm"> |
| 215 | + <td class="whitespace-nowrap border-b p-2 align-top text-xs"> |
208 | 216 | <p>{{ $item->quantity }}</p> |
209 | 217 | </td> |
210 | | - <td class="whitespace-nowrap border-b p-2 align-top text-sm"> |
| 218 | + <td class="whitespace-nowrap border-b p-2 align-top text-xs"> |
211 | 219 | <p>{{ $item->formatMoney($item->unit_price) }}</p> |
212 | 220 | </td> |
213 | 221 | @if ($displayTaxColumn) |
214 | | - <td class="whitespace-nowrap border-b p-2 align-top text-sm"> |
| 222 | + <td class="whitespace-nowrap border-b p-2 align-top text-xs"> |
215 | 223 | @if ($item->unit_tax && $item->tax_percentage) |
216 | 224 | <p>{{ $item->formatMoney($item->unit_tax) }} |
217 | 225 | ({{ $item->formatPercentage($item->tax_percentage) }})</p> |
|
222 | 230 | @endif |
223 | 231 | </td> |
224 | 232 | @endif |
225 | | - <td class="whitespace-nowrap border-b py-2 pl-2 text-right align-top text-sm"> |
| 233 | + <td class="whitespace-nowrap border-b py-2 pl-2 text-right align-top text-xs"> |
226 | 234 | <p>{{ $item->formatMoney($item->totalAmount()) }}</p> |
227 | 235 | </td> |
228 | 236 | </tr> |
|
231 | 239 | <tr> |
232 | 240 | {{-- empty space --}} |
233 | 241 | <td class="py-2 pr-2"></td> |
234 | | - <td class="border-b p-2 text-sm" colspan="{{ $colspan }}"> |
| 242 | + <td class="border-b p-2 text-xs" colspan="{{ $colspan }}"> |
235 | 243 | {{ __('invoices::invoice.subtotal_amount') }}</td> |
236 | | - <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-sm"> |
| 244 | + <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-xs"> |
237 | 245 | {{ $invoice->formatMoney($invoice->subTotalAmount()) }} |
238 | 246 | </td> |
239 | 247 | </tr> |
|
242 | 250 | <tr> |
243 | 251 | {{-- empty space --}} |
244 | 252 | <td class="py-2 pr-2"></td> |
245 | | - <td class="border-b p-2 text-sm" colspan="{{ $colspan }}"> |
| 253 | + <td class="border-b p-2 text-xs" colspan="{{ $colspan }}"> |
246 | 254 | {{ __($discount->name) ?? __('invoices::invoice.discount_name') }} |
247 | 255 | @if ($discount->percent_off) |
248 | 256 | ({{ $discount->formatPercentage($discount->percent_off) }}) |
249 | 257 | @endif |
250 | 258 | </td> |
251 | | - <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-sm"> |
| 259 | + <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-xs"> |
252 | 260 | {{ $invoice->formatMoney($discount->computeDiscountAmountOn($invoice->subTotalAmount())?->multipliedBy(-1)) }} |
253 | 261 | </td> |
254 | 262 | </tr> |
|
258 | 266 | <tr> |
259 | 267 | {{-- empty space --}} |
260 | 268 | <td class="py-2 pr-2"></td> |
261 | | - <td class="border-b p-2 text-sm" colspan="{{ $colspan }}"> |
| 269 | + <td class="border-b p-2 text-xs" colspan="{{ $colspan }}"> |
262 | 270 | {{ $invoice->tax_label ?? __('invoices::invoice.tax_label') }} |
263 | 271 | </td> |
264 | | - <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-sm"> |
| 272 | + <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-xs"> |
265 | 273 | {{ $invoice->formatMoney($invoice->totalTaxAmount()) }} |
266 | 274 | </td> |
267 | 275 | </tr> |
268 | 276 | @endif |
269 | 277 | <tr> |
270 | 278 | {{-- empty space --}} |
271 | 279 | <td class="py-2 pr-2"></td> |
272 | | - <td class="border-b p-2" colspan="{{ $colspan }}"> |
| 280 | + <td class="border-b p-2 text-sm" colspan="{{ $colspan }}"> |
273 | 281 | <strong>{{ __('invoices::invoice.total_amount') }}</strong> |
274 | 282 | </td> |
275 | | - <td class="whitespace-nowrap border-b py-2 pl-2 text-right"> |
| 283 | + <td class="whitespace-nowrap border-b py-2 pl-2 text-right text-sm"> |
276 | 284 | <strong> |
277 | 285 | {{ $invoice->formatMoney($invoice->totalAmount()) }} |
278 | 286 | </strong> |
|
282 | 290 | </table> |
283 | 291 |
|
284 | 292 | @if ($invoice->description) |
285 | | - <p class="mb-1"><strong>{{ __('invoices::invoice.description') }}</strong></p> |
286 | | - <p class="whitespace-pre-line">{!! $invoice->description !!}</p> |
| 293 | + <p class="mb-1 text-sm"><strong>{{ __('invoices::invoice.description') }}</strong></p> |
| 294 | + <p class="whitespace-pre-line text-xs">{!! $invoice->description !!}</p> |
287 | 295 | @endif |
288 | 296 |
|
289 | 297 | </div> |
|
0 commit comments