@extends('layouts.front') @section('page-css') @endsection @section('content')

{{ $title }}

@foreach ($all_data as $all) @endforeach
S.No Card Name Exam Name Price Purchased Date Expire Date Result Download Certificate Action
{{ $loop->iteration }} {{ $all->card_name }} {{ $all->exam_name }} {{ get_price($all->card_price) }} {{ get_date($all->created_at) }} {{ get_date($all->created_at->addYear()) }} @if ($all->test_result !='')

Result: {{ $all->test_result }}% @if ($all->test_result >= 50) (Pass) @else (Fail) @endif

@endif
@if($all->test_result !== null) @if($all->test_result >= 50) @if ($all->test_result >= 80)
@else @endif @else - @endif @else - @endif
@php $purchasedDate = $all->created_at; $currentDate = \Carbon\Carbon::now(); $daysDifference = $currentDate->diffInDays($purchasedDate); $test = $all->userTests->first(); @endphp @if($daysDifference <= 30 && ($all->test_result < 50)) Attempt Exam @else
-
@endif
@endsection @section('page-scripts') {{-- Download   --}} @endsection