@extends('app') @section('title', $chapter->name ? $chapter->name : ucfirst(__('chapter'))) @section('head') @endsection @section('content')
@foreach ($courses->chapters as $chapters) @if($chapters->getAttributes()['chapter_id'] == $chapter->chapter_id)

{{strtoupper(__('chapter'))}} # {{ $i }}

@break @endif @endforeach

{{ $chapter->name }}

@if($courses->timer == 1)

{{ucfirst(__('chapter time'))}}: {{ $chapter_progress }}:00

@endif

{!! isset($sections[0]) ? $sections[0]->title :ucfirst(__('title')) !!}

{!! isset($sections[0]) ? $sections[0]->description :ucfirst(__('description')) !!}

{{-- @if(count($chapter_attachment) > 0) --}} @if(!empty($chapter_attachment))
@foreach ($chapter_attachment as $video) @if($video->type == 1 ) @endif @endforeach
@foreach ($chapter_attachment as $audio) @if($audio->type == 2)

@endif @endforeach
@endif
@endsection @section('foot')