@extends('layout.layout') @section('content')
@foreach ($chapters as $chapter)
@if($errors->has('fail')) @foreach ($errors->all() as $error) @endforeach @endif @if($errors->has('success')) @foreach ($errors->all() as $error) @endforeach @endif
Numele capitolului: {{ $chapter->name }}

{!! $chapter->description !!}

@if(isset($chapter->test)) @endif
@endforeach @if(count($chapters) == 0)
@if($errors->has('fail')) @foreach ($errors->all() as $error)
@endforeach @endif @if($errors->has('success')) @foreach ($errors->all() as $error)
@endforeach @endif

Numele cursului este : {{ $course->name }}

Descriere este : {!! $course->description !!}

@if($course->has_test == 1) @else
@endif
@endif
@if(count($checkCompletedCourse) != 0) @else

Trebuie sa treci testul pentru a ajunge la urmatorul capitol

@endif @push('js') @endpush @endsection