@extends('theme.master') @section('title', "$bundle->title") @section('content') @section('meta_tags') @php $url = URL::current(); @endphp @endsection @include('admin.message')

{{ $bundle['title'] }}

{!! $bundle->detail !!}

{{--

{{ __('frontstaticword.LastUpdated') }}: {{ date('Y m/d', strtotime($bundle['updated_at'])) }}

--}}
@if ($bundle->type == 1) @if ($bundle->is_subscription_enabled == 1)
    @php $currency = App\Currency::first(); @endphp @if($bundle->discount_price == !null) @if($gsetting['currency_swipe'] == 1)
  • {{ $bundle['discount_price'] }}/{{ $bundle->billing_interval }}
  • {{ $bundle['price'] }}/{{ $bundle->billing_interval }}
  • @else
  • {{ $bundle['discount_price'] }}/{{ $bundle->billing_interval }}
  • {{ $bundle['price'] }}/{{ $bundle->billing_interval }}
  • @endif @else @if($gsetting['currency_swipe'] == 1)
  • {{ $bundle['price'] }}/{{ $bundle->billing_interval }}
  • @else
  • {{ $bundle['price'] }}/{{ $bundle->billing_interval }}
  • @endif @endif
@else
    @php $currency = App\Currency::first(); @endphp @if ($bundle->discount_price == !null) @if($gsetting['currency_swipe'] == 1)
  • {{ $bundle['discount_price'] }}
  • {{ $bundle['price'] }}
  • @else
  • {{ $bundle['discount_price'] }}
  • {{ $bundle['price'] }}
  • @endif @else @if($gsetting['currency_swipe'] == 1)
  • {{ $bundle['price'] }}
  • @else
  • {{ $bundle['price'] }}
  • @endif @endif
@endif @if (Auth::check()) @if (Auth::User()->role == 'admin') @else @php $order = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if (!empty($order) && $order->status == 1) @else @php $cart = App\Cart::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if (!empty($cart))
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif @endif @endif @else
@if ($bundle->is_subscription_enabled == 1)  {{ __('frontstaticword.SubscribeNow') }} @else  {{ __('frontstaticword.AddToCart') }} @endif
@endif @else
  • {{ __('frontstaticword.Free') }}
@if (Auth::check()) @if (Auth::User()->role == 'admin') @else @php $enroll = Auth::User()->isUserInSubscription(); @endphp @if (!$enroll) @if( Auth::User()->is_member()) @else @endif @else @endif @endif @else @endif @endif

{{ __('frontstaticword.Detail') }}

{{ __('frontstaticword.Publish') }}

{{ date('Y / m / d', strtotime($bundle['updated_at'])) }}


@if($courseLevel->isNotEmpty())
{{ __('frontstaticword.Bythenumbers') }}
@foreach ($courseLevel as $item ) {{ $item->name }} @endforeach @if ($totalCalorie != 0)
{{$totalCalorie}} 卡洛里
@endif

@endif {{-- 自訂區 --}} @isset ($bundle->interval)
間格天數
{{$bundle->interval}} / 天

@endisset @if (($accessories)->isNotEmpty())
{{ __('frontstaticword.Attachment') }}
    @foreach($accessories as $accessory)
  • {{ $accessory->name }}
  • @endforeach

@endif @if (isset($bundle->fit_situation))
{{ __('frontstaticword.Suitable') }}
{{ $bundle->fit_situation }}

@endif @if (isset($bundle->unfit_situation))
{{ __('frontstaticword.UnSuitable') }}
{{ $bundle->unfit_situation }}

@endif @if (isset($bundle->before_fitness))
{{ __('frontstaticword.BeforePrepare') }}
{{ $bundle->before_fitness }}

@endif @if (isset($bundle->body_response))
{{ __('frontstaticword.Response') }}
{{ $bundle->body_response }}

@endif @if (isset($bundle->suggest))
{{ __('frontstaticword.Suggest') }}
{{ $bundle->suggest }}

@endif @if (isset($bundle->suggest))
{{ __('frontstaticword.Note') }}
{{ $bundle->note }}

@endif

{{ __('frontstaticword.CoursesInBundle') }}

{{-- @php // FSMS function convertToHoursMins($time, $format = '%02d:%02d') { if ($time < 1) { return; } $hours=floor($time / 60); $minutes=($time % 60); return sprintf($format, $hours, $minutes); } $courseCount=count( $bundle['course_id'] ) // FSMS @endphp --}}  {{ $courseCount . " 個課程" }}
@foreach ($bundleAndCourses as $course)

{{ $course->short_detail }}

上課去
@endforeach
@endsection @section('custom-script') @endsection