@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 }}
@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