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

Dashboard OPALESCE Version 1.0

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

Data Table With Microunits

Add Microunit
@foreach ($microunits as $microunit) @endforeach
ID Title Created On Topic Status Actions Elements Questions
{{$microunit->id}} {{$microunit->title}} {{ date('j M. Y', strtotime($microunit->created_at)) }} {{$microunit->category->name}} @if ($microunit->approved == 0)
Pending
@elseif ($microunit->approved == 1)
Activated
@endif
{!! Form::open(['route' => ['authpanel.microunits.destroy', $microunit->id], 'method' => 'DELETE', 'id'=>'form-delete', 'style'=>'display:inline-block']) !!} @include('author.modals.deletemu') {!! Form::close() !!} @if($microunit->elementmicrounits->count()) {{$microunit->elementmicrounits->count()}} elements @else Add Element @endif @if($microunit->questions->count()) {{$microunit->questions->count()}} Questions @else Add Question @endif
ID Title Created On Topic Status Actions Elements Questions
@endsection @section('javascripts') @endsection