@extends('admin.layouts.app') @section('title', 'إدارة المعاملات') @section('content')
| # | المستخدم | النوع | النقاط | الوصف | البيانات الإضافية | تاريخ المعاملة | الإجراءات |
|---|---|---|---|---|---|---|---|
| {{ $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
|