@extends('layouts.dashboardnew') @section('content') {{-- ===================== HEADER + BOTÓN FILTROS (solo admin) ===================== --}}
Movimientos, retiros y comisiones acumuladas en tu cuenta.
| # | @if (Auth::user()->rol_id == 0)Usuario | @endifFecha | Nivel | Descripción | Descuento | Ingreso | Retiro | Balance |
|---|---|---|---|---|---|---|---|---|
| #{{$wallet->id}} | @if (Auth::user()->rol_id == 0) {{-- Usuario con avatar --}}
{{ strtoupper(substr($wallet->user->display_name, 0, 2)) }}
{{$wallet->user->display_name}}
|
@endif
{{-- Fecha --}}
{{date('d-m-Y', strtotime($wallet->date))}} | {{-- Nivel --}}{{ $wallet->nivel }} | {{-- Descripción --}}{{$wallet->descripcion}} | {{-- Descuento --}}@if($wallet->descuento > 0) - @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->descuento}} @else {{$wallet->descuento}} {{$moneda->simbolo}} @endif @else @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->descuento}} @else {{$wallet->descuento}} {{$moneda->simbolo}} @endif @endif | {{-- Ingreso (débito) --}}@if($wallet->debito > 0) @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->debito}} @else {{$wallet->debito}} {{$moneda->simbolo}} @endif @else — @endif | {{-- Retiro (crédito) --}}@if($wallet->credito > 0) @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->credito}} @else {{$wallet->credito}} {{$moneda->simbolo}} @endif @else — @endif | {{-- Balance --}}@if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->balance}} @else {{$wallet->balance}} {{$moneda->simbolo}} @endif |