@extends("admin.layouts.app") @section("css-links") @endsection @section("page-header")

Posts

@endsection @section("content") @include("admin.includes.page-message")

Posts

View And Control All Posts

All Posts

@php $models = '';@endphp @foreach($posts as $post) @endforeach
# Title Price Name Of User Images City Location Category name Details Activation Advertiser Type Last Updated Created On Control
{{$post->id}} {{$post->title}} {{$post->price}} {{$post->user->full_name}} @php $models .= ' '; @endphp {{$post->address->city}} @php $models .= ' '; @endphp {{$post->category->category_names ? $post->category->category_names["en"] : null}} id)}}" class="btn btn-primary">View {{$post->advertiserType->title_en . "(" . $post->advertiserType->title_ar . ")"}} {{$post->updated_at->diffForHumans()}} {{$post->created_at->diffForHumans()}} @if(hasPermissions("delete-post"))
id)}}" method="post" id="delete{{$post->id}}" style="display: none" data-swal-title="Delete Post" data-swal-text="Are Your Sure To Delete This Post ?" data-yes="Yes" data-no="No" data-success-msg="the post has been deleted succssfully"> @csrf @method("delete")
@endif
@endsection @section("js-scripts") @php echo $models; @endphp @endsection