@if ($calculations->count() > 0)
| # |
العنوان |
نوع المنتج |
المتغيرات المدخلة |
تاريخ الإنشاء |
الإجراءات |
@foreach ($calculations as $calculation)
| {{ $loop->iteration }} |
{{ $calculation->title }} |
{{ $calculation->productType->name }}
|
{{-- التعديل: لا تستخدم json_decode لأن input_variables هي بالفعل مصفوفة --}}
@foreach ($calculation->input_variables as $key => $value)
{{ $key }}:
{{ $value }}
@endforeach
|
{{ $calculation->created_at->format('Y-m-d H:i') }} |
|
@endforeach
{{ $calculations->links() }}
@else
لا توجد حسابات سابقة.
@endif