{{-- Post Info & Pricing --}}
Post Information
| Title |
{{ $deletedPost['title'] ?? 'N/A' }} |
| Description |
{!! $deletedPost['description'] ?? 'N/A' !!} |
| Created At |
{{ $deletedPost['created_at'] ?? 'N/A' }} |
| Updated At |
{{ $deletedPost['updated_at'] ?? 'N/A' }} |
Pricing
| Price |
{{ $deletedPost['price_formatted'] ?? 'N/A' }} |
| Negotiable |
{{ !empty($deletedPost['negotiable']) ? 'Yes' : 'No' }} |
| Sale Status |
{{ $deletedPost['saleStatus'] ?? 'N/A' }} |
{{-- Category & Contact --}}
Category
| Name |
{{ data_get($deletedPost, 'category.name.' . config('app.locale'), 'N/A') }}
|
| Slug |
{{ data_get($deletedPost, 'category.slug', 'N/A') }} |
| Icon |
|
Contact Information
| Contact Name |
{{ $deletedPost['contact_name'] ?? 'N/A' }} |
| Email |
{{ $deletedPost['email'] ?? 'N/A' }} |
| Phone |
{{ $deletedPost['phone_intl'] ?? ($deletedPost['phone'] ?? 'N/A') }} |
{{-- Post Pictures --}}
@if (!empty($deletedPost['pictures']) && is_array($deletedPost['pictures']))
@php
$images = collect($deletedPost['pictures'])->filter(
fn($pic) => str_starts_with($pic['mime_type'] ?? '', 'image/'),
);
$videos = collect($deletedPost['pictures'])->filter(
fn($pic) => str_starts_with($pic['mime_type'] ?? '', 'video/'),
);
@endphp
{{-- Images Row --}}
@if ($images->isNotEmpty())
Images
@foreach ($images as $image)
@if (!empty($image['filename_url']))
@endif
@endforeach
@endif
{{-- Videos Row --}}
@if ($videos->isNotEmpty())
Videos
@foreach ($videos as $video)
@if (!empty($video['filename_url']))
@endif
@endforeach
@endif
@endif