@extends('layout.user') @section('page-title', __('basic.Coin')) @section('nav-title', __('basic.Coin')) @section('page-js-script') @endsection @section('container') {{-- @php $data = [ [ // 我的推薦 'code' => 'dashboard_1', 'color' => '#0073BB;', 'id' => 'recommend', 'title' => __('robot.Share'), 'img' => 'image/icon/1.png', 'num' => $numList['totalChildrenCount'] ?? 0, 'detail' => [ [ // 種子會員 'code' => 'dashboard_1_1', 'title' => __('robot.ShareMember'), 'img' => 'image/icon/7.png', 'num' => $numList['totalChildrenCount'] - $numList['fund_count'], ], [ // 回饋會員 'code' => 'dashboard_1_2', 'title' => __('robot.BonusMember'), 'img' => 'image/icon/8.png', 'num' => $numList['fund_count'], ], ], ], [ // 我的金庫 // 'color' => '#FFC700;', 'code' => 'dashboard_2', 'color' => '#ff8966;', 'id' => 'money', 'title' => __('robot.MyCoin'), 'img' => 'image/icon/2.png', 'num' => $numList['coin'] + $numList['bonus'], 'detail' => [ [ // 購物金 'code' => 'dashboard_2_1', 'title' => __('robot.ClcCoin'), 'img' => 'image/icon/5.png', 'num' => $numList['coin'], ], [ // 回饋金 'code' => 'dashboard_2_2', 'title' => __('robot.Cashback'), 'img' => 'image/icon/6.png', 'num' => $numList['bonus'], ], ], ], [ // 我的商品 'code' => 'dashboard_3', 'color' => '#259C8C;', 'id' => 'product', 'title' => __('robot.PurchaseHistory'), 'img' => 'image/icon/3.png', 'num' => '0', 'url' => route('orderlist'), 'detail' => [ // [ // 'title' => '種子會員', // 'num' => '50', // ], // [ // 'title' => '種子會員', // 'num' => '50', // ], ], ], [ // 我的通知 'code' => 'dashboard_4', 'color' => '#E73B56;', 'id' => 'notice', 'title' => __('robot.MyNotification'), 'img' => 'image/icon/4.png', 'num' => '0', 'url' => route('notice'), 'detail' => [ // [ // 'title' => '種子會員', // 'num' => '50', // ], // [ // 'title' => '種子會員', // 'num' => '50', // ], ], ], ]; @endphp --}} @php $data = [ [ // 種子會員 'code' => 'dashboard_1', 'color' => '#000000;', 'id' => 'recommend', 'title' => __('robot.ShareMember'), 'img' => 'image/dashboard/1.png', 'num' => $numList['totalChildrenCount'] - $numList['fund_count'], ], [ // 回饋會員 'code' => 'dashboard_2', 'color' => '#000000;', 'id' => 'money', 'title' => __('robot.BonusMember'), 'img' => 'image/dashboard/2.png', 'num' => $numList['fund_count'], ], [ // CLC幣 'code' => 'dashboard_3', 'color' => '#000000;', 'id' => 'product', 'title' => __('robot.ClcCoin'), 'img' => 'image/dashboard/3.png', 'num' => $numList['coin'], 'url' => route('coin'), ], [ // 回饋金 'code' => 'dashboard_4', 'color' => '#000000;', 'id' => 'notice', 'title' => __('robot.Cashback'), 'img' => 'image/dashboard/4.png', 'num' => $numList['bonus'], 'url' => '#', ], ]; @endphp
 
{{-- member-dashboard --}} @include('partial._dashboard', ['data' => $data, 'mobileOnly' => false]) {{--
$13,200
{{ __('basic.CanUseCoin') }}
1,200{{ __('basic.CoinWill') }}2022-06-30{{ __('basic.CoinExpend') }}
已邀請好友

710人

--}}
@foreach ($coin_list as $item)

{{ $item['title'] }}

{{--

{{ $item['content'] }}

--}}

@if ($item['coin'] > 0) + @endif {{ $item['coin'] }}

@if (empty($coin_type) || $coin_type == 'all')

{{ date('Y-m-d', strtotime($item['create_time'])) }}

@endif @if ($item['coin'] > 0)

@if (str_contains($item['expiry_date'], '9999')) {{ __('robot.NoExpirationDate') }} @else {{ __('robot.ExpiryDate') }}:{{ date('Y-m-d', strtotime($item['expiry_date'])) }} @endif

@endif
@endforeach
@include('partial._pagination', $paginate) @endsection