@foreach ($statues as $key => $status)
@php
$proposals = App\Models\Proposal::where('workspace', getActiveWorkSpace())
->where('status', $key)
->get();
$countstatus = $proposals->count();
$total = $countstatus != 0 ? number_format($countstatus / $total_proposals, 4) : 0;
$totalpercentage = $total*100;
@endphp
{{ $countstatus }}
{{ __('Total') }}
{{ $totalpercentage }}{{ __('%') }}
{{ __('Total Percentage') }}
@endforeach