@extends('layouts.app') @section('title', '購入履歴') @section('content')

購入履歴

@forelse($historyList as $kihon)

注文日:{{ $kihon->shoridate }} (注文番号:{{ $kihon->kihonno }})

{{----}} @php $total = 0; @endphp @foreach($kihon->meisai as $m) @php $subtotal = $m->tanka * $m->suryo; $total += $subtotal; @endphp {{-- これで四捨五入できている --}} {{-- これで四捨五入できている --}} {{-- --}} @endforeach
商品名 販売開始 単価 数量 小計受取状況
{{ $m->shohin->shohinname2 }} @if($m->startdate) {{ \Carbon\Carbon::parse($m->startdate)->format('Y-m-d') }} @else - @endif {{ rtrim(rtrim($m->tanka, '0'), '.') }}円{{ rtrim(rtrim($m->suryo, '0'), '.') }} {{ $m->tani }} {{ number_format($subtotal, 0) }}円 @if($m->uriage)  受取済 @else  未受取 @endif
合計 {{ number_format($total, 0) }}円
@empty

購入履歴はありません。

@endforelse
@endsection