| {{$date}} |
{{number_format($basic['fee'][$date]['usage'])}} |
@if(isset($basic['fee'][$date]))
{{number_format($basic['fee'][$date]['utility'])}} |
{{number_format($basic['fee'][$date]['cleaning'])}} |
@php
$total += round($basic['fee'][$date]['utility']);
$total += round($basic['fee'][$date]['cleaning']);
@endphp
@else
0 |
0 |
@endif
@foreach ($peripherals as $peripheral)
@if ($peripheral['type'] == 'time')
@if (!$i)
{{isset($peripheral['fee'])?number_format($peripheral['fee']):''}} |
@endif
@else
@if ($peripheral['type'] == 'day')
@if (in_array($date, $peripheral['data']))
{{number_format($peripheral['total'])}}
@else
0
@endif
@else
@if (isset($peripheral['data'][$date]))
{{number_format($peripheral['data'][$date]['fee'])}}
@php
$total += round($peripheral['data'][$date]['fee']);
@endphp
@else
0
@endif
@endif
|
@endif
@endforeach
{{number_format($total)}} |
@endforeach