@extends('admin.layouts.master') @section('page-title', __('strings.posts')) @section('content')

{{__('strings.posts_listing')}}

{{__('strings.clear')}}
@forelse ($posts as $post) @empty @endforelse
{{__('strings.title')}} {{__('strings.user_name')}} {{__('strings.description')}} {{__('strings.board_no_en')}} {{__('strings.board_no_ar')}} {{__('strings.category')}} {{__('strings.subcategory')}} {{__('strings.price')}} {{__('strings.images')}} {{__('strings.status')}} {{__('strings.change_status')}} {{__('strings.actions')}}
{{ $post->title ?? config('loatk.not_found') }} {{ $post->user->username ?? config('loatk.not_found') }} {{ \Str::limit($post->description, 80, '...') ?? config('loatk.not_found') }} {{ $post->board_no ?? config('loatk.not_found') }} {{ $post->board_no_ar ?? config('loatk.not_found') }} {{ $post->category->title_ar ?? config('loatk.not_found') }} {{ $post->subCategory->title_ar ?? config('loatk.not_found') }} {{ number_format($post->price) ?? config('loatk.not_found') }} @if(!empty($post->images)) @foreach($post->images as $image) @endforeach @endif {{ $post->status == 1 ? 'Active' : 'Inactive' ?? config('loatk.not_found') }} status ? 'checked' : '' }}>
@method('delete') @csrf
@if(sizeof($post->comments)>0) @endif
{{__('strings.no_data_found')}}
{{ $posts->links() }}
@endsection @section('scripts') @endsection