@extends('common/main/layout') @section('content')

@lang('db.reports') @lang('db.report_waypoint.quantity')@lang('system.title.total')

@include('common/error-message')
@php $sumArray['unit_1'] = 0; $sumArray['unit_2'] = 0; $sumArray['unit_3'] = 0; $sumArray['unit_4'] = 0; $sumArray['unit_5'] = 0; @endphp @foreach($totals as $total) @endforeach
日付 {{ config('const.UNITS.1') }} {{ config('const.UNITS.2') }} {{ config('const.UNITS.3') }} {{ config('const.UNITS.4') }} {{ config('const.UNITS.5') }}
{{ date('j日', strtotime($total->date)) }} @if (!empty($total->sum_quantity_unit_1)) {{ number_format($total->sum_quantity_unit_1) }} {{ config('const.UNITS.1') }} @php $sumArray['unit_1'] = $sumArray['unit_1'] + intval($total->sum_quantity_unit_1); @endphp @else - @endif @if (!empty($total->sum_quantity_unit_2)) {{ number_format($total->sum_quantity_unit_2) }} {{ config('const.UNITS.2') }} @php $sumArray['unit_2'] = $sumArray['unit_2'] + intval($total->sum_quantity_unit_2); @endphp @else - @endif @if (!empty($total->sum_quantity_unit_3)) {{ number_format($total->sum_quantity_unit_3) }} {{ config('const.UNITS.3') }} @php $sumArray['unit_3'] = $sumArray['unit_3'] + intval($total->sum_quantity_unit_3); @endphp @else - @endif @if (!empty($total->sum_quantity_unit_4)) {{ number_format($total->sum_quantity_unit_4) }} {{ config('const.UNITS.4') }} @php $sumArray['unit_4'] = $sumArray['unit_4'] + intval($total->sum_quantity_unit_4); @endphp @else - @endif @if (!empty($total->sum_quantity_unit_5)) {{ number_format($total->sum_quantity_unit_5) }} {{ config('const.UNITS.5') }} @php $sumArray['unit_5'] = $sumArray['unit_5'] + intval($total->sum_quantity_unit_5); @endphp @else - @endif
合計 {{ number_format($sumArray['unit_1']) }} {{ config('const.UNITS.1') }} {{ number_format($sumArray['unit_2']) }} {{ config('const.UNITS.2') }} {{ number_format($sumArray['unit_3']) }} {{ config('const.UNITS.3') }} {{ number_format($sumArray['unit_4']) }} {{ config('const.UNITS.4') }} {{ number_format($sumArray['unit_5']) }} {{ config('const.UNITS.5') }}
@endsection