売上 | @foreach($params as $month_param){{ $month_param['month'] }}月 | @endforeach指定期間 | {{ $params[0]['category_params'][$body_category_key]['name'] }} | @php $total_fees_per_category = 0; @endphp @foreach($params as $param_month) @php $total_fees_per_category += $param_month['category_params'][$body_category_key]['total_fees_per_month_category']; @endphp{{ $param_month['category_params'][$body_category_key]['total_fees_per_month_category'] }} | @endforeach{{ $total_fees_per_category }} | @endfor
---|---|---|---|---|
合計 | @php $total_fees = 0; @endphp @foreach($params as $param_month) @php $total_fees += $param_month['total_fees']; @endphp{{ $param_month['total_fees'] }} | @endforeach{{ $total_fees }} | ||
レンタル原価 | @php $total_expenses = 0; @endphp @foreach($params as $param_month) @php $total_expenses += $param_month['total_expenses']; @endphp{{ $param_month['total_expenses'] }} | @endforeach{{ $total_expenses }} | ||
売上総利益 | @foreach($params as $param_month){{ $param_month['total_fees'] - $param_month['total_expenses'] }} | @endforeach{{ $total_fees - $total_expenses}} | ||
昨年対比 | @php $total_fees = 0; $m = 0; @endphp @foreach($params as $param_month) @if($result_params[$m]['sales']){{ number_format(100*$param_month['total_fees']/$result_params[$m]['sales']) }}% | @else- | @endif @php $total_fees += $param_month['total_fees']; $m++; @endphp @endforeach @if($result_params[$m]['sales']){{ number_format(100*$total_fees/$result_params[$m]['sales']) }}% | @else- | @endif
昨年実績 | @foreach($result_params as $result_param){{ number_format($result_param['sales']) }} | @endforeach
売上 | @foreach($params as $month_param){{ $month_param['month'] }}月 | @endforeach指定期間 | {{ $params[0]['category_params'][$body_category_key]['name'] }} | @php $total_occupancy_rate_per_category = 0; @endphp @foreach($params as $param_month) @php $total_occupancy_rate_per_category += round($param_month['category_params'][$body_category_key]['occupancy_rate_per_month_category']); @endphp{{ round($param_month['category_params'][$body_category_key]['occupancy_rate_per_month_category']) }}% | @endforeach{{ round($total_occupancy_rate_per_category / 12) }}% | @endfor
---|---|---|---|---|
全台 | @php $total_occupancy_rate = 0; @endphp @foreach($params as $param_month) @php $total_occupancy_rate += round($param_month['occupancy_rate']); @endphp{{ round($param_month['occupancy_rate']) }}% | @endforeach{{ round($total_occupancy_rate / 12) }}% | ||
昨年対比 | @php $total_occupancy_rate = 0; $m = 0; @endphp @foreach($params as $param_month) @if($result_params[$m]['sales']){{ number_format(100*$param_month['occupancy_rate']/$result_params[$m]['sales_rate']) }}% | @else- | @endif @php $total_occupancy_rate += $param_month['occupancy_rate']; $m++; @endphp @endforeach @if($result_params[$m]['sales_rate']){{ number_format(100*$total_occupancy_rate/$result_params[$m]['sales_rate']) }}% | @else- | @endif
昨年実績 | @foreach($result_params as $result_param){{ number_format($result_param['sales_rate']) }}% | @endforeach