@extends('layouts.app') @section('content')
@if (Session::get('register_using_code') !== null) @endif
My topics
Create a topic
    @if (count($topics)) @foreach ($topics as $topic)
  • {{ $topic->title }} {{ $topic->postCount() }}
    Created {{ Carbon\Carbon::createFromTimeStamp(strtotime($topic->created_at))->diffForHumans() }}
    Last post {{ Carbon\Carbon::createFromTimeStamp(strtotime($topic->updated_at))->diffForHumans() }} @can ('delete', $topic)
    {{ method_field('DELETE') }} {{ csrf_field() }}
    @endcan
  • @endforeach @else

    You haven't created any topics yet.

    @endif
@endsection