@extends('layouts.admin') @section('title', 'İşlem Yönetimi') @section('content')

İşlem Yönetimi

Kullanıcı işlemlerini görüntüleyin ve yönetin

Toplam İşlem

{{ $transactions->total() }}

Toplam Bahis

₺{{ number_format($transactions->where('type', 'bet')->sum('amount'), 2) }}

Toplam Kazanç

₺{{ number_format($transactions->where('type', 'win')->sum('amount'), 2) }}

Net Kazanç

₺{{ number_format($transactions->where('type', 'win')->sum('amount') - $transactions->where('type', 'bet')->sum('amount'), 2) }}

Temizle

İşlem Listesi

{{ $transactions->firstItem() }}-{{ $transactions->lastItem() }} / {{ $transactions->total() }} işlem
@foreach($transactions as $transaction) @endforeach
ID Kullanıcı Tür Tutar Oyun Game ID Tarih
#{{ $transaction->id }} @if($transaction->user)
{{ strtoupper(substr($transaction->user->name ?? 'U', 0, 1)) }}
{{ $transaction->user->name }}
ID: {{ $transaction->user_id }}
@else Kullanıcı bulunamadı (ID: {{ $transaction->user_id }}) @endif
@if($transaction->type == 'bet') Bahis @elseif($transaction->type == 'win') Kazanç @elseif($transaction->type == 'refund') İade @else {{ $transaction->type }} @endif @if($transaction->type == 'bet') -₺{{ number_format($transaction->amount, 2) }} @else +₺{{ number_format($transaction->amount, 2) }} @endif @if($transaction->gamename) {{ $transaction->gamename }} @else - @endif {{ $transaction->gameid ?: '-' }} {{ $transaction->created_at ? \Carbon\Carbon::parse($transaction->created_at)->format('d.m.Y H:i:s') : '-' }}
@if($transactions->hasPages())
{{ $transactions->firstItem() }}-{{ $transactions->lastItem() }} / {{ $transactions->total() }} işlem
@if($transactions->onFirstPage()) Önceki @else Önceki @endif @foreach($transactions->getUrlRange(1, $transactions->lastPage()) as $page => $url) @if($page == $transactions->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @if($transactions->hasMorePages()) Sonraki @else Sonraki @endif
@endif
@endsection