@extends('admin.layouts.app') @section('title', 'إدارة المعاملات') @section('content')

إدارة المعاملات

العودة للوحة التحكم
نقاط مكتسبة
{{ number_format($transactions->where('type', 'earned')->sum('points')) }}
نقاط مستخدمة
{{ number_format(abs($transactions->where('type', 'used')->sum('points'))) }}
إجمالي المعاملات
{{ $transactions->total() }}
تعديلات إدارية
{{ $transactions->where('type', 'admin_adjustment')->count() }}
قائمة المعاملات
@if($transactions->count() > 0)
@foreach($transactions as $index => $transaction) @endforeach
# المستخدم النوع النقاط الوصف البيانات الإضافية تاريخ المعاملة الإجراءات
{{ $transactions->firstItem() + $index }}
{{ substr($transaction->user->name, 0, 1) }}
{{ $transaction->user->name }}
{{ $transaction->user->email }}
@switch($transaction->type) @case('earned') كسب @break @case('used') استخدام @break @case('admin_adjustment') تعديل إداري @break @case('refund') استرداد @break @default {{ $transaction->type }} @endswitch {{ $transaction->type === 'earned' || $transaction->type === 'refund' ? '+' : '' }}{{ $transaction->points }}
{{ $transaction->description }}
@if($transaction->metadata) @else - @endif {{ $transaction->created_at->format('Y-m-d H:i:s') }}
@if($transaction->type === 'admin_adjustment') @endif
{{ $transactions->links() }}
@else
لا توجد معاملات
@endif
@endsection @push('scripts') @endpush