@extends('layouts.app') @section('title', 'Harcama Cuzdani') @section('page-title', 'Harcama Cuzdani') @section('content') @if($wallets->count() > 0) @foreach($wallets as $wallet) @php $wCurrency = $wallet->currency; @endphp {{-- Wallet Balance Card --}}

Mevcut Bakiye {{ $wCurrency->code ?? '' }}

@money($wallet->balance, $wCurrency)

Toplam Yuklenen

@money($wallet->total_loaded, $wCurrency)

Toplam Harcanan

@money($wallet->total_spent, $wCurrency)

{{-- Transaction History --}} @if($wallet->transactions->count() > 0)

Islem Gecmisi ({{ $wCurrency->code ?? '' }})

{{ $wallet->transactions->count() }} islem
@foreach($wallet->transactions as $tx) @endforeach
Tarih Tip Tutar Isletme Bakiye Aciklama
{{ $tx->transaction_date->format('d.m.Y H:i') }} @php $txColors = [1 => 'bg-emerald-50 text-emerald-700', 2 => 'bg-red-50 text-red-700', 3 => 'bg-blue-50 text-blue-700']; $txColor = $txColors[$tx->transaction_type] ?? 'bg-gray-50 text-gray-600'; @endphp {{ $tx->transaction_type_text }} {{ $tx->is_credit ? '+' : '-' }}@money($tx->amount, $wCurrency) {{ $tx->business_name ?? '-' }} @money($tx->balance_after, $wCurrency) {{ $tx->description ? Str::limit($tx->description, 30) : '-' }}
@else

{{ $wCurrency->code ?? '' }} cuzdaninda henuz islem yapilmamis.

@endif @endforeach @else

Harcama cuzdani henuz tanimlanmamis.

@endif @endsection