@extends('layouts.admin') @section('content')
@can('accounts')
Pppoe Connection Summary
@php $amount=0; foreach ($all as $ac) { //echo 'Found - '.$ac['bill_amount']; $amount=$amount+$ac['bill_amount']; //echo ' Total = '.$amount; //echo '
'; } @endphp

Total Connections : {{$all->count()}}

Total monthly bill : Tk {{number_format($amount,2)}}

All connections

@php $active_amount=0; foreach ($active as $ac) { $active_amount=$active_amount+$ac['bill_amount']; } @endphp

Total Active Connections : {{$active->count()}}

Total monthly bill : Tk {{number_format($active_amount,2)}}

Active connections

@php $inactive_amount=0; foreach ($inactive as $ac) { $inactive_amount=$inactive_amount+$ac['bill_amount']; } @endphp

Total Inactive Connections : {{$inactive->count()}}

Total monthly bill : Tk {{number_format($inactive_amount,2)}}

Inactive connections

@php $inactive_amount=0; foreach ($trash as $ac) { $inactive_amount=$inactive_amount+$ac['bill_amount']; } @endphp

Total Connections in Trash Guard : {{$trash->count()}}

Total monthly bill : Tk {{number_format($inactive_amount,2)}}

Trash connections

@endcan
@endsection