@if($bundle->type == 1)
@php
$currency = App\Currency::first();
@endphp
@if($bundle->discount_price == !NULL)
- {{ $bundle['discount_price'] }}
{{ $bundle['price'] }}
@else
- {{ $bundle['price'] }}
@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))
@else
@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