@extends('layouts.dashboardnew') @section('content') {{-- filtro por fecha --}} @include('usuario.componentes.filtroPorFecha', ['ruta' => 'wallet-filtro', 'form' => '']) @if(Auth::user()->rol_id == 0)
Filtro de ID
@endif
@if (Auth::user()->rol_id == 0) @endif @foreach ($wallets as $wallet) @if (Auth::user()->rol_id == 0) @endif @endforeach
# Usuario Fecha Nivel Descripción Descuento Ingreso Retiro Balance
{{$wallet->id}} {{$wallet->user->display_name}} {{date('d-m-Y', strtotime($wallet->date))}} {{ $wallet->nivel }} {{$wallet->descripcion}} @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->descuento}} @else {{$wallet->descuento}} {{$moneda->simbolo}} @endif @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->debito}} @else {{$wallet->debito}} {{$moneda->simbolo}} @endif @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->credito}} @else {{$wallet->credito}} {{$moneda->simbolo}} @endif @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$wallet->balance}} @else {{$wallet->balance}} {{$moneda->simbolo}} @endif
@if(Auth::user()->rol_id != 0)
Total Billetera: @if($ultimo->count() > 0) @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{ $ultimo[0]->balance }} @else {{ $ultimo[0]->balance }} {{$moneda->simbolo}} @endif @else @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{ 0 }} @else {{ 0 }} {{$moneda->simbolo}} @endif @endif
@else
Total Billetera: @if ($moneda->mostrar_a_d) {{$moneda->simbolo}} {{$total}} @else {{$total}} {{$moneda->simbolo}} @endif
@endif
@endsection @include('usuario.componentes.scripBotones')