@php $users = \App\User::paginate(15); @endphp @extends('admin.layouts.master') @section('title') @lang('translation.Dashboards') @endsection @section('content') @component('admin.components.breadcrumb') @slot('li_1') Dashboards @endslot @slot('title') Dashboard @endslot @endcomponent
@foreach($users as $u) @php $deps = \App\Payment::where('user_id', $u->id)->where('status', 1)->sum('sum'); $withdraws = \App\Withdraw::where('user_id', $u->id)->where('status', 1)->sum('sum'); @endphp @endforeach
# Имя IP Баланс Депозитов Выводов Дата регистрации Действия
{{$u->id}} admin == 1) class="text-danger" @endif>{{$u->name}} {{$u->ip}} {{number_format($u->balance, 2, ',', ' ')}} {{number_format($deps, 2, ',', ' ')}} {{number_format($withdraws, 2, ',', ' ')}} {{date('d.m.y в H:i:s', strtotime($u->created_at))}} Перейти@if($u->ban == 1)@else@endif
{{ $users->links() }}
@endsection @section('script') @endsection