@extends('layouts.app') @section('content')
{{-- @include('home.photo-partial', ['tags' => $tags])--}} @include('home.blog-partial') @foreach($posts as $post)

{{$post->title}}

{{array_slice(explode("\r\n", $post->content), 0, 1)[0]}}
Continue reading...
@switch($post->type) @case('blog') Blog Post @break @case('music') Music @break @case('gallery') Photo Gallery @break @default Unknown @endswitch
{{$post->created_at->format('Y-m-d')}}
@if(!is_null($post->location))
{{ $post->location }}
@endif
@if(sizeof($post->tags) > 0) @foreach($post->tags as $tag) {{$tag->name}}, @endforeach @else No tags @endif

@endforeach
@include('layouts.sidebar')
@endsection