@php $total_down = 0; $total_up = 0; @endphp @foreach ($list as $r) @php($total_down += round(($r->acctoutputoctets) / 8388608, 2)) @php($total_up += round(($r->acctinputoctets) / 8388608, 2)) @endforeach @foreach ($list_2 as $row_2) @php($total_down += round(($row_2->downloaded/8), 2)) @php($total_up += round(($row_2->uploaded/8), 2)) @endforeach
ID Username Client IP MAC Address Download Upload Login Logout Reason
{{ $r->acctuniqueid }} {{ $r->username }} {{ $r->framedipaddress }} {{ $r->callingstationid }} {{ round(($r->acctoutputoctets) / 8388608, 2) }} MB {{ round(($r->acctinputoctets) / 8388608, 2) }} MB {{ $r->acctstarttime }} {{ $r->acctstoptime }} {{ $r->acctterminatecause }}
{{ $row_2->session_id }} {{ $row_2->username }} {{ $row_2->ip_address }} {{ $row_2->mac_address }} {{ round(($row_2->downloaded/8) ) }} MB {{ round(($row_2->uploaded/8) ) }} MB {{ $row_2->session_start_time }} {{ $row_2->session_end_time }} {{ $row_2->last_disconnect_reason }}
Total {{ $total_down }} MB {{ $total_up }} MB