@extends('partial.master') @section('page_title','資料選單維護') @section('scripts') {{-- --}} {{-- --}} @endsection @section('kt_content_container') {{-- begin::Row --}}
{{-- begin::Search --}}
{{-- begin::Svg Icon | path: icons/duotune/general/gen021.svg --}} {{-- end::Svg Icon --}}
{{-- end::Search --}}
@if(count($data['list'])>0) @foreach($data['list'] as $key=>$row) {{-- begin::Col --}}
{{-- begin::Card --}}
{{-- begin::Card header --}}
{{-- begin::Card title --}}
{{-- end::Card title --}}
{{-- end::Card header --}} {{-- begin::Card body --}}
排序編號: {{ $row['sorting'] }}
選項可多選: {{ $row['is_multiple_text'] }}
此選單總共有 {!! count($row['detail']) !!} 個選項
@if(count($row['detail'])>0)
@php $detailCount = count($row['detail']); if($detailCount>5)$detailCount=5; $moreCount = count($row['detail'])-$detailCount; @endphp @for($i=0;$i<$detailCount;$i++) @php $detailRow = $row['detail'][$i]; // if($row['id']=='ideal_type')logger($row['detail'][$i]); $detailValue = $detailRow['value'] ->where('lang_id',config('app.locale'))->first()->description ?? '--'; @endphp
{!! $detailValue !!}
@endfor @if($moreCount>0)
尚有其他 {!! $moreCount !!} 個選項...
@endif
@else 尚無選項 @endif
{{-- end::Card body --}} {{-- begin::Card footer --}} {{-- end::Card footer --}}
{{-- end::Card --}}
{{-- end::Col --}} @endforeach @else

尚無選單資料!

@endif
{{-- begin::Modal --}} {{-- end::Modal --}} @endsection