@extends('layouts.app1') @section('content')

Music Tutorials

@if (session()->has('message'))

{{ session()->get('message') }}

@endif @can('is-instructor')
Create post
@endcan @foreach ($posts as $post)

{{ $post->title }}

By {{ $post->user->name }}, Created on {{ date('jS M Y', strtotime($post->updated_at)) }}

{{ $post->description }}

Keep Reading @if (isset(Auth::user()->id) && Auth::user()->id == $post->user_id) Edit
@csrf @method('delete')
@endif
@endforeach @endsection