0

I am new to Laravel and I have been following a tutorial. I have been getting an expected syntax error file but when I go to the posts index I am not seeing the error neither do I find it in my app blade class, I have posted the code of each below Error syntax error, unexpected end of file

this is the posts index blade

@extends('layouts.app')

@section('content')
    <h1>Posts</h1>  
    @if (count($posts) >1 )
        @foreach ($posts as $post )
            <div class ="well">
            <h3><a href="/posts/{{$post->id}}" {{$post->title}}></a></h3>
            <small>Written on {{$post->created_at}}</small>
            </div>
            
        @endforeach
    @else
    <p>No posts found<\p>
@endsection

this is my app.blade code

<!DOCTYPE *html*>
<html lang="{{ app()->getLocale() }}">
 <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Fairy') }}</title>

    <!-- Styles -->
     <link href="{{ asset('css/app.css') }}" rel="stylesheet">
 </head>
  <body>
    <div id="app">
    @include('inc.navbar')
        <div class="container">
        @include('inc.messages')
        @yield('content')
        </div>
     </div>

<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
<script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
<script>
    CKEDITOR.replace( 'article-ckeditor' );
</script>
</body>
</html>

Thank you for any assistance you can offer

0 Answers0