@extends('layout') @section('pageTitle', "商品列表|".config('globals.app_name')) {{-- @endsection --}} {{-- @section('breadcrumb') @php $breadcrumb = [ ['name' => __("menu.LOC_BONUS_SETTINGS")], ['name' => __('menu.LOC_BONUSES')], ['name' => __('other.LOC_EDIT')], ]; $moduleName = __('menu.LOC_BONUSES'); $backBtn = "/bonus/bonus/"; @endphp @endsection --}} @section('content')

|嚴選商品|

" 用心做好所有產品, "

  • 全部商品
  • @foreach ($ProductList as $item => $row)
  • {{ $item }}
  • @endforeach
@foreach ($ProductList as $item => $row)

{{ $item }}

@foreach ($row as $key => $products) @php // dd($products); $money_range = json_decode($products->AmountJson,true); $total_inventory = 0; $min = 0; $max = 0; foreach($money_range as $key1 => $bag_array){ $money = $bag_array['Amount']; if($min == 0 || $min > $money){ $min = $money; } if($max == 0 || $max < $money){ $max = $money; } $total_inventory+= $bag_array['Inventory']; } if($min == $max){ $show = $min; } else{ $show = $min .' - '.$max; } @endphp @endforeach
@endforeach
@endsection