@extends('layouts.app') @section('content')

{{ __('Total users') }}

{{ $users->count() }}
{{ __('Go to user management') }}

{{ __('Total billed amount') }}

{{ auth()->user()->currency . $billing }}
{{ __('Go to user billing') }}

{{ __('Total payment received') }}

{{ auth()->user()->currency . $payments }}
{{ __('Go to user payment') }}
{{ __('Users') }}

@foreach($users as $user) @endforeach
{{ __('Name') }} {{ __('Status') }} {{ __('Package') }} {{ __('Type') }} {{ __('Due') }} {{ __('Edit') }}
{{ $user->name }} {{ $user->status === 1 ? 'Active' : 'Inactive' }} {{ $user->package->packageDetail->title }} {{ $user->package->packageDetail->package->type === 1 ? 'PPoE' : 'HotSpot' }} @if($user->bills->sum('amount') > $user->payments->sum('amount')) {{ auth()->user()->currency . ($user->bills->sum('amount') - $user->payments->sum('amount'))}} {{ __('(due)') }} @else {{ auth()->user()->currency . ($user->payments->sum('amount') - $user->bills->sum('amount'))}} {{ __('(advanced)') }} @endif {{ __('Edit') }}
@endsection @section('scripts') @endsection