@php use Carbon\Carbon; use App\Models\Post; use App\Models\User; use App\Models\Profile; use App\Models\Audios; $posts = Post::where('visibility', 'public')->get(); @endphp @extends("layouts.foruzone_layout") @section("title", "Emotion") @section("link-logo") {{route('emotion')}} @endsection @section("logo", "../images/emotion.png") @section("name-logo", "Emotion") @section("icon", "../images/emotion.ico") @section("side-menu") @endsection @section("content")

Publicações de aúdios

@foreach ($posts as $post) @if ($post->type_id == 4) @php $profile = Profile::where('id', $post->profile_id)->first(); $user = User::where('id', $profile->user_id)->first(); $audio = Audios::where('post_id', $post->id)->first(); @endphp
@endif @endforeach
@if ($posts->where('type_id', 4)->count() > 4)
@endif @endsection @push('scripts') @endpush