@extends('backend.layout') @section('content')
@if(\Auth::user()->type == 'admin') @endif @if($users != null) @foreach($users as $stt => $user) boss_id) data-tt-parent-id="{{$user->boss_id}}" @endif> @if(\Auth::user()->type == 'admin') @endif @endforeach @endif
#ID Họ tên Tên đăng nhập Email Phone Đơn hàng Thiết bị Khách hàng Đại lý Trạng thái Action
#{{$user->id}} {{ $user->name }} {{ $user->{'user_name'} }} {{ $user->email }} {{ $user->phone }} {{ $user->boxs->count() }}
  • Đặt cọc: {{$user->devices->where('use','coc')->count()}}
  • Mượn: {{$user->devices->where('use','muon')->count()}}
{{ $user->customers->count() }} @if($user->is_boss) {{$user->childs->count()}} đại lý @elseif(!$user->boss_id) Chọn tổng @endif @if($user->is_boss) Huỷ @elseif($user->boss_id) Xoá tổng @else Nâng cấp @endif @if($user->active) Active @else Block @endif
@endsection @push('styles') @endpush @push('scripts') @endpush