@php $day = date('j', strtotime($data['date']['edate'])); $week = date('w', strtotime($data['date']['sdate'])); $cols = 1; @endphp @foreach (__("lang.dictionary.weekday") as $key => $value) @endforeach @for ($i = 1; $i <= ($day + $week); $i++) @php $j = $i - $week; @endphp @if($j < 1) @else @php $w = date('w', strtotime(\Carbon\Carbon::create($data['yy'], $data['mm'], $i)->toDateString())); $today = ($data['yy'] == date('Y') && $data['mm'] == date('n') && $j == date('j')) ? 'bg-primary bg-opacity-10' : ''; @endphp @endif @if(($i % 7) == 0) @php $cols = 0; @endphp @if($j != $day) @endif @else @if($i == ($day + $week)) @for($k = ($cols + 1); $k <= 7; $k++) @endfor @endif @endif @php $cols++; @endphp @endfor
{!! $value !!}
 
@if($data['yy'] == date('Y') && $data['mm'] == date('n') && $j == date('j'))
@else
@endif {!! $j !!}
合計
{!! (isset($data['status_list'][$j])) ? number_format($data['status_list'][$j]['am'] + $data['status_list'][$j]['pm']) : 0 !!}
午前
{!! (isset($data['status_list'][$j])) ? number_format($data['status_list'][$j]['am']) : 0 !!}
午後
{!! (isset($data['status_list'][$j])) ? number_format($data['status_list'][$j]['pm']) : 0 !!}
@if(isset($data['status_list'][$j])) {{-- count --}}
  • COVID陽性
    {!! (is_null($data['status_list'][$j]['covid_positive_count'])) ? 0 : $data['status_list'][$j]['covid_positive_count'] !!} / {!! (is_null($data['status_list'][$j]['covid_positive_percentage'])) ? 0 : $data['status_list'][$j]['covid_positive_percentage'] !!}%
  • インフル陽性
    {!! (is_null($data['status_list'][$j]['flu_positive_count'])) ? 0 : $data['status_list'][$j]['flu_positive_count'] !!} / {!! (is_null($data['status_list'][$j]['flu_positive_percentage'])) ? 0 : $data['status_list'][$j]['flu_positive_percentage'] !!}%
{{-- /.count --}} @else
  •  
  •  
@endif