Skip to content

Commit 64d587a

Browse files
committed
fix
1 parent da02ef0 commit 64d587a

File tree

1 file changed

+67
-59
lines changed

1 file changed

+67
-59
lines changed

resources/views/default/invoice.blade.php

Lines changed: 67 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<tbody>
1111
<tr>
1212
<td class="p-0 align-top">
13-
<h1 class="mb-1 text-3xl">
13+
<h1 class="mb-1 text-2xl">
1414
<strong>{{ $invoice->name }}</strong>
1515
</h1>
1616
@if ($invoice->state)
@@ -21,38 +21,38 @@
2121

2222
<table class="w-full">
2323
<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">
2626
<strong>{{ __('invoices::invoice.serial_number') }} </strong>
2727
</td>
28-
<td class="pb-1" width="100%">
28+
<td class="" width="100%">
2929
<strong>{{ $invoice->serial_number }}</strong>
3030
</td>
3131
</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">
3434
{{ __('invoices::invoice.created_at') }}
3535
</td>
36-
<td class="pb-1" width="100%">
36+
<td class="" width="100%">
3737
{{ $invoice->created_at?->format(config('invoices.date_format')) }}
3838
</td>
3939
</tr>
4040
@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">
4343
{{ __('invoices::invoice.due_at') }}
4444
</td>
45-
<td class="pb-1" width="100%">
45+
<td class="" width="100%">
4646
{{ $invoice->due_at->format(config('invoices.date_format')) }}
4747
</td>
4848
</tr>
4949
@endif
5050
@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">
5353
{{ __('invoices::invoice.paid_at') }}
5454
</td>
55-
<td class="pb-1" width="100%">
55+
<td class="" width="100%">
5656
{{ $invoice->paid_at->format(config('invoices.date_format')) }}
5757
</td>
5858
</tr>
@@ -86,42 +86,42 @@
8686
$tax_number = data_get($invoice->seller, 'tax_number');
8787
$company_number = data_get($invoice->seller, 'company_number');
8888
@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>
9090
@if ($name)
91-
<p class="pb-1 text-sm">{{ $name }}</p>
91+
<p class="pb-1 text-xs">{{ $name }}</p>
9292
@endif
9393
@if ($street)
94-
<p class="pb-1 text-sm">{{ $street }}</p>
94+
<p class="pb-1 text-xs">{{ $street }}</p>
9595
@endif
9696
@if ($postal_code || $city)
97-
<p class="pb-1 text-sm">
97+
<p class="pb-1 text-xs">
9898
{{ $postal_code }}
9999
{{ $city }}
100100
</p>
101101
@endif
102102
@if ($state)
103-
<p class="pb-1 text-sm">{{ $state }}</p>
103+
<p class="pb-1 text-xs">{{ $state }}</p>
104104
@endif
105105
@if ($country)
106-
<p class="pb-1 text-sm">{{ $country }}</p>
106+
<p class="pb-1 text-xs">{{ $country }}</p>
107107
@endif
108108
@if ($email)
109-
<p class="pb-1 text-sm">{{ $email }}</p>
109+
<p class="pb-1 text-xs">{{ $email }}</p>
110110
@endif
111111
@if ($phone_number)
112-
<p class="pb-1 text-sm">{{ $phone_number }}</p>
112+
<p class="pb-1 text-xs">{{ $phone_number }}</p>
113113
@endif
114114
@if ($tax_number)
115-
<p class="pb-1 text-sm">{{ $tax_number }}</p>
115+
<p class="pb-1 text-xs">{{ $tax_number }}</p>
116116
@endif
117117
@if ($company_number)
118-
<p class="pb-1 text-sm">{{ $company_number }}</p>
118+
<p class="pb-1 text-xs">{{ $company_number }}</p>
119119
@endif
120120
@foreach (data_get($invoice->seller, 'data') ?? [] as $key => $item)
121121
@if (is_string($key))
122-
<p class="pb-1 text-sm">{{ $key }}: {{ $item }}</p>
122+
<p class="pb-1 text-xs">{{ $key }}: {{ $item }}</p>
123123
@else
124-
<p class="pb-1 text-sm">{{ $item }}</p>
124+
<p class="pb-1 text-xs">{{ $item }}</p>
125125
@endif
126126
@endforeach
127127
</td>
@@ -138,42 +138,42 @@
138138
$tax_number = data_get($invoice->buyer, 'tax_number');
139139
$company_number = data_get($invoice->buyer, 'company_number');
140140
@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>
142142
@if ($name)
143-
<p class="pb-1 text-sm">{{ $name }}</p>
143+
<p class="pb-1 text-xs">{{ $name }}</p>
144144
@endif
145145
@if ($street)
146-
<p class="pb-1 text-sm">{{ $street }}</p>
146+
<p class="pb-1 text-xs">{{ $street }}</p>
147147
@endif
148148
@if ($postal_code || $city)
149-
<p class="pb-1 text-sm">
149+
<p class="pb-1 text-xs">
150150
{{ $postal_code }}
151151
{{ $city }}
152152
</p>
153153
@endif
154154
@if ($state)
155-
<p class="pb-1 text-sm">{{ $state }}</p>
155+
<p class="pb-1 text-xs">{{ $state }}</p>
156156
@endif
157157
@if ($country)
158-
<p class="pb-1 text-sm">{{ $country }}</p>
158+
<p class="pb-1 text-xs">{{ $country }}</p>
159159
@endif
160160
@if ($email)
161-
<p class="pb-1 text-sm">{{ $email }}</p>
161+
<p class="pb-1 text-xs">{{ $email }}</p>
162162
@endif
163163
@if ($phone_number)
164-
<p class="pb-1 text-sm">{{ $phone_number }}</p>
164+
<p class="pb-1 text-xs">{{ $phone_number }}</p>
165165
@endif
166166
@if ($tax_number)
167-
<p class="pb-1 text-sm">{{ $tax_number }}</p>
167+
<p class="pb-1 text-xs">{{ $tax_number }}</p>
168168
@endif
169169
@if ($company_number)
170-
<p class="pb-1 text-sm">{{ $company_number }}</p>
170+
<p class="pb-1 text-xs">{{ $company_number }}</p>
171171
@endif
172172
@foreach (data_get($invoice->seller, 'data') ?? [] as $key => $item)
173173
@if (is_string($key))
174-
<p class="pb-1 text-sm">{{ $key }}: {{ $item }}</p>
174+
<p class="pb-1 text-xs">{{ $key }}: {{ $item }}</p>
175175
@else
176-
<p class="pb-1 text-sm">{{ $item }}</p>
176+
<p class="pb-1 text-xs">{{ $item }}</p>
177177
@endif
178178
@endforeach
179179
</td>
@@ -184,34 +184,42 @@
184184
<table class="mb-5 w-full">
185185
<thead>
186186
<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>
191196
@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>
193200
@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') }}
195203
</th>
196204
</tr>
197205
</thead>
198206
<tbody>
199207
@foreach ($invoice->items as $item)
200208
<tr>
201209
<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>
203211
@if ($item->description)
204-
<p class="pt-1 text-sm">{{ $item->description }}</p>
212+
<p class="pt-1 text-xs">{{ $item->description }}</p>
205213
@endif
206214
</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">
208216
<p>{{ $item->quantity }}</p>
209217
</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">
211219
<p>{{ $item->formatMoney($item->unit_price) }}</p>
212220
</td>
213221
@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">
215223
@if ($item->unit_tax && $item->tax_percentage)
216224
<p>{{ $item->formatMoney($item->unit_tax) }}
217225
({{ $item->formatPercentage($item->tax_percentage) }})</p>
@@ -222,7 +230,7 @@
222230
@endif
223231
</td>
224232
@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">
226234
<p>{{ $item->formatMoney($item->totalAmount()) }}</p>
227235
</td>
228236
</tr>
@@ -231,9 +239,9 @@
231239
<tr>
232240
{{-- empty space --}}
233241
<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 }}">
235243
{{ __('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">
237245
{{ $invoice->formatMoney($invoice->subTotalAmount()) }}
238246
</td>
239247
</tr>
@@ -242,13 +250,13 @@
242250
<tr>
243251
{{-- empty space --}}
244252
<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 }}">
246254
{{ __($discount->name) ?? __('invoices::invoice.discount_name') }}
247255
@if ($discount->percent_off)
248256
({{ $discount->formatPercentage($discount->percent_off) }})
249257
@endif
250258
</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">
252260
{{ $invoice->formatMoney($discount->computeDiscountAmountOn($invoice->subTotalAmount())?->multipliedBy(-1)) }}
253261
</td>
254262
</tr>
@@ -258,21 +266,21 @@
258266
<tr>
259267
{{-- empty space --}}
260268
<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 }}">
262270
{{ $invoice->tax_label ?? __('invoices::invoice.tax_label') }}
263271
</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">
265273
{{ $invoice->formatMoney($invoice->totalTaxAmount()) }}
266274
</td>
267275
</tr>
268276
@endif
269277
<tr>
270278
{{-- empty space --}}
271279
<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 }}">
273281
<strong>{{ __('invoices::invoice.total_amount') }}</strong>
274282
</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">
276284
<strong>
277285
{{ $invoice->formatMoney($invoice->totalAmount()) }}
278286
</strong>
@@ -282,8 +290,8 @@
282290
</table>
283291

284292
@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>
287295
@endif
288296

289297
</div>

0 commit comments

Comments
 (0)