{{ __('Dashboard') }}

@lang('Balance')
{{ \Illuminate\Support\Number::currencyCents($balance) }}

@lang('Send money to a friend')

@csrf @if (session('money-sent-status') === 'success') @elseif (session('money-sent-status') === 'insufficient-balance') @endif
{{ __('Send my money !') }}

@lang('Transactions history')

@foreach($transactions as $transaction) @endforeach
@lang('ID') @lang('Reason') @lang('Description') @lang('Amount')
{{$transaction->id}} {{$transaction->reason}} @if($transaction->is_transfer) @if ($transaction->type->isCredit()) @lang(':name sent you :amount', [ 'amount' => Number::currencyCents($transaction->transfer->amount), 'name' => $transaction->transfer->source->user->name, ]) @else @lang('You sent :amount to :name', [ 'amount' => Number::currencyCents($transaction->transfer->amount), 'name' => $transaction->transfer->target->user->name, ]) @endif @else @lang('--') @endif type->isCredit() ? 'text-green-500' : 'text-red-500', ])> {{Number::currencyCents($transaction->type->isCredit() ? $transaction->amount : -$transaction->amount)}}