{{ $topic->title }}
{{ str_limit($topic->description, 120) }}
- Per Question Mark
- Total Marks
- Total Questions
- Total Time
- Quiz Price
- {{ $topic->per_q_mark }}
-
@php
$qu_count = 0;
@endphp
@foreach ($questions as $question)
@if ($question->topic_id == $topic->id)
@php
$qu_count++;
@endphp
@endif
@endforeach
{{ $topic->per_q_mark * $qu_count }}
-
{{ min($qu_count, 25) }}
-
{{ $topic->timer }} minutes
-
@if (!empty($topic->amount))
{{-- {{$topic->amount}} --}}
@else
Free
@endif
@if (Session::has('added'))
{{ session('added') }}
@elseif (Session::has('updated'))
{{ session('updated') }}
@elseif (Session::has('deleted'))
{{ session('deleted') }}
@endif
@if ($auth->topic()->where('topic_id', $topic->id)->exists())
Start Quiz
@else
{!! Form::open(['method' => 'POST', 'action' => 'PaypalController@paypal_post']) !!}
{{ csrf_field() }}
@if (!empty($topic->amount))
@else
Start Quiz
@endif
{!! Form::close() !!}
@endif