@php $total_inbox = 0; if($boot_dtcount){ foreach( $boot_dtcount as $key => $value ){ $total_inbox += $value; } } @endphp