@extends('author.dashboard') @section('stylesheets') @endsection @section('title', "View Topic: $category->name") @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('authviewtopics', $category) !!}
User Image {{$category->admin->name}} {{ date('j M Y', strtotime($category->created_at)) }}
Photo

Topic:

{{$category->name}}

Views:

{{$category->viewcounter}}

Microunits:

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

Suites:

{{$category->suites->count()}}

Description:

{{$category->description}}

@if(!count($results))

Info

There is no data in this topic!

@else

Data Table With Microunits & Suites

@foreach ($results as $result) @endforeach
Title Type Created At Status Actions
{{$result->title}} @if ($result->muid) Microunit: {{$result->muid}} @else Suite: {{$result->suiteid}} @endif {{ date('j M Y', strtotime($result->created_at)) }} @if ($result->approved == 0)
Pending
@elseif ($result->approved == 1)
Activated
@endif
@if ($result->muid) {!! Form::open(['route' => ['authpanel.microunits.destroy', $result->id], 'method' => 'DELETE', 'id'=>'form-delete', 'style'=>'display:inline-block']) !!} @include('admin.categories.modals.deleteresults') {!! Form::close() !!} @else {!! Form::open(['route' => ['authpanel.suites.destroy', $result->id], 'method' => 'DELETE', 'id'=>'form-delete', 'style'=>'display:inline-block']) !!} @include('author.categories.modals.deleteresults') {!! Form::close() !!} @endif
Title Type Created At Status Actions
@endif
@endsection @section('javascripts') @endsection