@extends('theme.master') @section('title') @section('content') @include('admin.message')
@if(count($bundles) > 0)
@foreach($bundles as $bundle) @if($bundle->status == 1)
@if($bundle['preview_image'] !== NULL && $bundle['preview_image'] !== '') course @else course @endif
By {{ optional($bundle->user)['fname'] }}
  • @if(Auth::check())
  • @php $wish = App\Wishlist::where('user_id', Auth::User()->id)->where('course_id', $bundle->id)->first(); @endphp @if ($wish == NULL)
  • {{ csrf_field() }}
  • @else
  • {{ csrf_field() }}
  • @endif @else
  • @endif
{{ $bundle['title'] }}

{{ strip_tags(str_limit($bundle['detail'], $limit = 200, $end = '...')) }}

    @foreach ($bundle->course_id as $bundles) @php $course = App\Course::where('id', $bundles)->first(); @endphp @isset($course)
  • {{ $course['title'] }}
  • @endisset @endforeach
@if($bundle->type == 1) @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 @endif @else @if(Auth::check()) @if(Auth::User()->role == "admin") @else @php $enroll = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', $bundle->id)->first(); @endphp @if($enroll == NULL) @else @endif @endif @else @endif @endif
@endif @endforeach
@endif
@endsection @section('custom-script') @endsection