@extends('admin.dashboard') @section('title', 'Microunits') @section('stylesheets') @endsection @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('suites') !!}

Data Table With Suites

Add Suite
@foreach ($suites as $suite) @if($suite->author) @elseif($suite->admin) @else

There are no authors!

@endif @include('admin.suites.modals.attach') @endforeach
ID Title Created On Author Topic Status Actions Microunits
{{$suite->id}} {{$suite->title}} {{ date('j M. Y', strtotime($suite->created_at)) }}{{$suite->author->name}} {{$suite->author->lastname}}{{$suite->admin->name}} (Admin) {{$suite->category->name}} @if ($suite->approved == 0) {!! Form::model($suite, ['route' => ['admin.suite.activate', $suite->id], 'method'=>'PUT', 'id'=>'form-activate','style'=>'display:inline-block']) !!} Activate @include('admin.modals.activatesuite') {!! Form::close() !!} @elseif ($suite->approved == 1)
Activated
@endif
@include('admin.modals.deletesuite') @if($suite->microunits->count()) {{$suite->microunits->count()}} microunits @else Attach Microunit @endif
ID Title Created On Author Topic Status Actions Microunits
@endsection @section('javascripts') @endsection