@php $logins = $accounts->keyBy('LOGIN')->values(); @endphp
@for ($i=0; $i<$logins->count(); $i++)
@php
$current_acc = isset($logins[$i]->LOGIN) ? $logins[$i]->LOGIN : null;
$total_lot_ac_wise = ($accounts->where('LOGIN',$current_acc)->sum('TLOT'))/100;
@endphp
Pair Wise Volume
({{$total_lot_ac_wise}})
Fatal error: Uncaught Error: Call to a member function where() on null in /home/devceo/public_html/resources/views/account/IBdashboard/ib-details.blade.php:278
Stack trace:
#0 {main}
thrown in /home/devceo/public_html/resources/views/account/IBdashboard/ib-details.blade.php on line 278