@extends('superadmin.layout.master') @section('problems','active') @php use Carbon\Carbon; @endphp @section('contant')
@if(Session::get('errors')) {!!Session::forget('errors')!!} @endif @if(Session::get('success')) {!!Session::forget('success')!!} @endif
{{-- @if(session('delete'))
{{session('delete')}}
@endif --}}

@foreach($all_problems as $problem) @endforeach
Created Date Title Description Total Answer Answer #1 Answer #2 Max # Per/User Max # Total #Votes A#1 A#2 Correct Answer End Date Status Score Actions
{{$problem->created_at}} {{$problem->title}} {{$problem->description}} {{$problem->total_answer}} {{$problem->answer1}} {{$problem->answer2}} {{$problem->max_user}} {{$problem->max_total}} {{$problem->problemResult->count()}} {{$problem->problemResult->where('answer_number',1)->count()}} {{$problem->problemResult->where('answer_number',2)->count()}} {{$problem->correct_answer}} {{$problem->end_date}} {{-- @if($problem->problemResult->count() >= $problem->max_total || $problem->end_date <= Carbon::now() || $problem->is_active=='0') Closed @else Opened @endif --}} @if($problem->is_active=='0' || $problem->end_date <= Carbon::now()) Closed @else Opened @endif {{$problem->score}} Edit Delete
Title Description Answer #1 Answer #2 Max # Per/User Max # Total Correct Answer End Date Status Score Actions
@endsection