@extends('admin.dashboard') @section('stylesheets') @endsection @section('title', "View Suite: $suite->title") @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('viewsuites', $suite) !!}
@if($suite->author) User Image {{$suite->author->name}} @elseif ($suite->admin) User Image {{$suite->admin->name}} @else

There are no authors!

@endif {{ date('j M Y', strtotime($suite->created_at)) }}
Photo

{{ $suite->suiteid}}

id

{{ date('j M', strtotime($suite->created_at)) }}

{{ date('Y', strtotime($suite->created_at)) }}

{{ $suite->category->name}}

Topic

Microunits:

{{$suite->microunits->count()}}

@if ($suite->suitesRates->count()) @foreach ($suite->suitesRates as $rate)

Average Rating:

{{round($rate->rating)}}

Total Reviews:

{{round($rate->reviews)}}

@endforeach @else

Average Rating:

0

Total Reviews:

0

@endif
{{$suite->title}}
Info
{{$suite->short_description}}
Target
{{$suite->target}}
Description
{{$suite->description}}
Experiences
{{$suite->experiences}}
Learning Styles
{{$suite->learning_styles}}
Prerequisites
{{$suite->prerequisites}}
Responsible
@if($suite->author) {{$suite->author->name}} @elseif($suite->admin) {{$suite->admin->name}} @endif
License
{{$suite->license->name}}
Tags
@foreach ($suite->tags as $tag) {{$tag->name}} @endforeach
Available Languages
@foreach ($languages as $lang) {{$lang[0]['language']}} @endforeach

{{$suite->microunits->count()}}

{{Lang::choice('messages.microunits', $suite->microunits->count())}}

@foreach ($suite->microunits as $microunit)
@if($microunit->author) User Image {{$microunit->author->name}} {{Lang::trans('messages.published')}}: {{ date('j M Y', strtotime($microunit->created_at)) }} @elseif ($microunit->admin) User Image {{$microunit->admin->name}} {{Lang::trans('messages.published')}}: {{ date('j M Y', strtotime($microunit->created_at)) }} @else no author @endif
Photo
{{$microunit->muid}}
@endforeach
@endsection @section('javascripts') @endsection