@extends('user_dashboard.layouts.app') @section('content') @push('js') @endpush
@include('user_dashboard.layouts.sidebar')

Plan

@foreach ($plans as $key => $plan) {{--
@if ($current_plan->plan->priority >= $plan->priority) @else @php if ( isset( $current_plan->plan->upgrade_amount[ $plan->priority - $current_plan->plan->priority - 1 ], ) ) { $amount = $current_plan->plan->upgrade_amount[ $plan->priority - $current_plan->plan->priority - 1 ]; } else { $amount = 0; } @endphp @endif plan->priority >= $plan->priority) @else onclick="couponModel({{ $plan->id }},{{ $amount }})" @endif>
For Online Courses

{{ $plan->title }}

@foreach ($plan->points as $plan_point) {{ $plan_point }} @endforeach
@if ($current_plan->plan->priority >= $plan->priority)
Active Plan @else Upgrade to {{ $plan->title }} in ₹{{ $amount }} @endif
--}}
@foreach ($plan->points as $plan_point) {{ $plan_point }} @endforeach
@if ($current_plan->plan->priority < $plan->priority) @php if (isset($current_plan->plan->upgrade_amount[$plan->priority - $current_plan->plan->priority - 1])){ $amount = $current_plan->plan->upgrade_amount[$plan->priority - $current_plan->plan->priority - 1]; }else{ $amount = 0; } @endphp
₹ {{ $amount }}
@endif @if ($current_plan->plan->priority >= $plan->priority) Active Plan @else Upgrade @endif
@endforeach
@endsection