@extends('layout.base') @section('page-title', $data['name'] . ' ') @section('page-js-script') @endsection @section('container')
{{-- Image --}}
@if (count($data['image']) > 0) @foreach ($data['image'] as $v)
{{-- --}}
@endforeach @else
{{-- --}}
@endif
@if (!$data['has_inv'])
{{ __('robot.SoldOut') }}
@endif
@if (count($data['image']) > 0) @foreach ($data['image'] as $v)
@endforeach @else
@endif {{--
--}}
{{-- Detail --}}
{{ $data['name'] }}
{{-- {{ $data['description'] ?? '--' }} --}}
$ {{ $data['price'] }} @if ($data['discount']) ${{ $data['retail'] }} @endif {{-- --}}
{{ $data['coin'] }}
{{ $data['rating'] }} @if (session('user_id'))
{{-- {{ $data['bonus'] }} --}} {{ $data['bonus'] ?? 0 }}
@else @endif
{{-- --}}
{!! $data['specification'] ?? '--' !!}
{{--
--
--}}
{{-- 活動 --}} {{-- --}}
{{-- Product Content --}} {{--
{!! nl2br($data['description']) ?? '--' !!}
{!! nl2br($data['feature']) ?? '--' !!}
--}}

{{ __('robot.Product') . __('robot.Content') }}

{!! nl2br($data['description']) ?? '--' !!}

{{ __('robot.Product') . __('robot.Feature') }}

{!! nl2br($data['feature']) ?? '--' !!}
{{-- Commet --}} {{-- Recommend --}}

{{ __('robot.Recommend') }}

@foreach ($recommendList as $k => $v) @if (!empty($v['preferential_price'])) @else @endif @endforeach
@foreach ($data['spec'] as $k1 => $v1) {{--
規格
--}} {{--
{{ $v1['name'] }}
--}}
{{ __('basic.Variation') }}
@foreach ($v1['detail'] as $k2 => $v2) @php $qty = $data['inv'][$v2['name']] ?? 0; $inv = empty($data['inv'][$v2['name']]) || $qty < $data['min_buy_num'] ? true : false; @endphp {{-- --}} @endforeach {{-- --}}
@endforeach @if (count($data['spec']) == 0)
{{ __('robot.InventoryQuantity') }} : {{ array_values($data['il'])[0] }}
@endif
{{ __('robot.InventoryQuantity') }} :
{{ __('robot.QuantityAndTotalPrice') }}
@if ($data['min_buy_num'] > 0)
{{ __('robot.MinimumPurchaseQuantity') }} : {{ $data['min_buy_num'] }}
@endif {{--

{{ __('robot.ShippingIsCalculatedAtCheckout') }}

--}}

{{ __('basic.Total') }}

{{ $data['price'] }}

@endsection