@extends('admin.layouts.app') @section('title', __('admins')) @section('content') @if ($errors->any())
@endif @if(session()->has('message'))
{{ session()->get('message') }}
@endif

Posts

{{ __("Add") }}
@foreach( $posts as $key => $post ) {{-- --}} @endforeach
# Image Title Category visibility Section Is Approved Status Action
{{$post->id}}
@if(Storage::disk('public')->exists('posts/'.$post->image))
@else
@endif
{{$post->title}} @foreach($post->categories as $key=>$category) {{$category->name}} @endforeach {{$post->view_count}} {{$post->type_post}} {{$post->is_approved == true ? 'Approved' : 'Pending '}} {{$post->status == true ? 'Published' : 'Pending'}}
Edit Delete
@endsection @push('scripts') @endpush