Commit ea923df7 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Replace issue date column with payment date in invoices list

Shows when the invoice was last paid instead of when it was created.
List is already sorted by paid_at DESC.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent b28c3485
...@@ -211,7 +211,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:rin ...@@ -211,7 +211,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:rin
<th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('المتبقي') }}</th> <th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('المتبقي') }}</th>
<th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('الحالة') }}</th> <th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('الحالة') }}</th>
<th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('طريقة الدفع') }}</th> <th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('طريقة الدفع') }}</th>
<th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('تاريخ الإصدار') }}</th> <th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('تاريخ الدفع') }}</th>
<th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('إجراءات') }}</th> <th class="px-4 py-3 text-center font-medium text-gray-600">{{ __('إجراءات') }}</th>
</tr> </tr>
</thead> </thead>
...@@ -278,7 +278,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:rin ...@@ -278,7 +278,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:rin
@endif @endif
</td> </td>
<td class="px-4 py-3 text-center text-gray-600" dir="ltr"> <td class="px-4 py-3 text-center text-gray-600" dir="ltr">
{{ $invoice->issue_date?->format('Y-m-d') }} {{ $invoice->paid_at?->format('Y-m-d') ?? '—' }}
</td> </td>
<td class="px-4 py-3 text-center space-x-2 space-x-reverse"> <td class="px-4 py-3 text-center space-x-2 space-x-reverse">
@can('invoices.view') @can('invoices.view')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment