@include('partials.header') @php $cites = App\Models\Lookups\City::all(); @endphp





المزادات العقارية

تصفح أحدث الفرص الاستثمارية


@php $statuses = [ 'all' => 'الكل', 'active' => 'جارية', 'upcoming' => 'قادمة', ]; @endphp @foreach ($statuses as $key => $label) @endforeach
@if ($auctions->count()) @php $now = Carbon\Carbon::now('Asia/Riyadh'); $activeCount = 0; $upcomingCount = 0; foreach ($auctions as $auction) { $startDate = Carbon\Carbon::parse($auction->start_date)->startOfDay(); $endDate = Carbon\Carbon::parse($auction->end_date)->setTime(17, 0, 0); // 5 PM cutoff if ($now->lt($startDate)) { $upcomingCount++; } elseif ($now->between($startDate, $endDate)) { $activeCount++; } } @endphp
{{-- إجمالي المزادات --}}
{{ $activeCount + $upcomingCount + $endedCount }}
إجمالي المزادات
{{-- جارية الآن --}}
{{ $activeCount }}
جارية الآن
{{-- قادمة قريباً --}}
{{ $upcomingCount }}
قادمة قريباً
@foreach ($auctions as $auction) @php $now = Carbon\Carbon::now('Asia/Riyadh'); $start = Carbon\Carbon::parse($auction->start_date)->startOfDay(); $end = Carbon\Carbon::parse($auction->end_date)->setTime(17, 0, 0); // Set end date to 5:00 PM if ($now->lt($start)) { $status = 'قادم'; $statusClass = 'upcoming'; $timeText = 'يبدأ بعد ' . number_format($now->diffInDays($start)) . ' يوم'; } elseif ($now->between($start, $end)) { $status = 'جاري'; $statusClass = 'active'; $timeText = 'متبقي ' . number_format($now->diffInDays($end)) . ' يوم'; } else { $status = 'منتهي'; $statusClass = 'ended'; $timeText = 'انتهى منذ ' . number_format($end->diffInDays($now)) . ' يوم'; } @endphp
{{ $status }}
{{ $auction->name }}
{{ $timeText }}

{{ $auction->name }}

{{ $auction->excutionCompany->name ?? 'غير محددة' }}
{{ $auction->region->name ?? 'متعددة المناطق' }}
تاريخ البدء
{{ $start->format('Y-m-d') }}
تاريخ الانتهاء
{{ $end->format('Y-m-d') }}
@endforeach
{{ $auctions->withQueryString()->links('pagination::bootstrap-5') }}
Logo on scroll

خدمة تتيح لنا تزويدك بعقارك المرغوب من جميع المزادات

@else

لا توجد مزادات متاحة حالياً

يمكنك متابعتنا لمعرفة أحدث المزادات عند إضافتها

@endif
@include('partials.list_modal') @include('partials.scriptList_model') @include('partials.footer')