File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ class="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text
243243 @foreach ($licenses as $license )
244244 @php
245245 $isLegacyLicense = $license -> isLegacy ();
246- $daysUntilExpiry = $license -> expires_at ? $license -> expires_at -> diffInDays ( now () ) : null ;
246+ $daysUntilExpiry = $license -> expires_at ? ( int ) now () -> diffInDays ( $license -> expires_at , false ) : null ;
247247 $needsRenewal = $isLegacyLicense && $daysUntilExpiry !== null && ! $license -> expires_at -> isPast ();
248248 @endphp
249249 <li class =" {{ $needsRenewal ? ' bg-blue-50 dark:bg-blue-900/20' : ' ' } }" >
Original file line number Diff line number Diff line change 2929 @foreach ($licenses as $license )
3030 @php
3131 $isLegacyLicense = $license -> isLegacy ();
32- $daysUntilExpiry = $license -> expires_at ? $license -> expires_at -> diffInDays ( now () ) : null ;
32+ $daysUntilExpiry = $license -> expires_at ? ( int ) now () -> diffInDays ( $license -> expires_at , false ) : null ;
3333 $needsRenewal = $isLegacyLicense && $daysUntilExpiry !== null && ! $license -> expires_at -> isPast ();
3434 @endphp
3535 <li class =" {{ $needsRenewal ? ' bg-blue-50 dark:bg-blue-900/20' : ' ' } }" >
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ class="ml-2 inline-flex items-center px-2.5 py-1.5 border border-gray-300 dark:b
158158
159159 @php
160160 $isLegacyLicense = $license -> isLegacy ();
161- $daysUntilExpiry = $license -> expires_at ? $license -> expires_at -> diffInDays ( now () ) : null ;
161+ $daysUntilExpiry = $license -> expires_at ? ( int ) now () -> diffInDays ( $license -> expires_at , false ) : null ;
162162 $needsRenewal = $isLegacyLicense && $daysUntilExpiry !== null ;
163163 @endphp
164164
Original file line number Diff line number Diff line change 1717 @foreach ($this -> licenses as $license )
1818 @php
1919 $isLegacyLicense = $license -> isLegacy ();
20- $daysUntilExpiry = $license -> expires_at ? $license -> expires_at -> diffInDays ( now () ) : null ;
20+ $daysUntilExpiry = $license -> expires_at ? ( int ) now () -> diffInDays ( $license -> expires_at , false ) : null ;
2121 $needsRenewal = $isLegacyLicense && $daysUntilExpiry !== null && ! $license -> expires_at -> isPast ();
2222
2323 $status = match (true ) {
Original file line number Diff line number Diff line change 9999 {{-- Renewal CTA --}}
100100 @php
101101 $isLegacyLicense = $license -> isLegacy ();
102- $daysUntilExpiry = $license -> expires_at ? $license -> expires_at -> diffInDays ( now () ) : null ;
102+ $daysUntilExpiry = $license -> expires_at ? ( int ) now () -> diffInDays ( $license -> expires_at , false ) : null ;
103103 $needsRenewal = $isLegacyLicense && $daysUntilExpiry !== null ;
104104 @endphp
105105
You can’t perform that action at this time.
0 commit comments