@extends('site.layouts.master') @section('title') {{ __('site.live_auction') }} @endsection @section('metatags') @endsection @section('content')

@lang('site.LAST CHANCE TO BID')

@php $weeks = Carbon\Carbon::parse($auction->auction_end_date)->diffInWeeks(now()); if ($weeks > 0) { $totalDays = Carbon\Carbon::parse($auction->auction_end_date)->diffInDays(now()); $days = $totalDays % 7; $totalHours = Carbon\Carbon::parse($auction->auction_end_date)->diffInHours(now()); $hours = $totalHours % ($totalDays * 24); $minutes = Carbon\Carbon::parse($auction->auction_end_date)->diffInMinutes(now()) % ($totalHours * 60); } @endphp

@lang('site.End In') {{ $weeks ?? 0 }} @lang('site.Weeks') {{ $days ?? 0 }} @lang('site.Days') {{ $hours ?? 0 }} @lang('site.Hours') {{ $minutes ?? 0 }} @lang('site.Minutes')

{{ date('d M Y', strtotime($auction->date)) . ' - ' . date('d M Y', strtotime($auction->auction_end_date)) }}

{{ $property->images->first()->meta ?? 'image' }}
@foreach ($property->images as $i => $image) @if ($loop->iteration != 1 && $loop->iteration < 6) {{ $image->meta ?? 'image' }} @endif @endforeach

@if ($property->location->governorate->name) {{ $property->location->governorate->name }} @endif @if ($property->location->city->name) {{ $property->location->city->name }} @endif @if ($property->location->district->name) {{ $property->location->district->name }} @endif @if ($property->location->compound->name) {{ $property->location->compound->name }} @endif

@lang('site.listing_id') : {{ $property->id }}

{{ $property->metadata->title }}

bedroom

{{ $property->options->no_of_bedrooms }} @lang('site.beds')

bathroom

{{ $property->options->no_of_bathrooms }} @lang('site.Bathrooms')

size

{{ $property->options->size ?? $property->options->surface_area }} @lang('site.SqFt')

{{ $property->property_type->label }}

@if (LaravelLocalization::getCurrentLocale() == 'en') @foreach ($property->subtypes()->pluck('sub_type_name')->toArray() as $subt) @if ($loop->iteration > 1) , @endif {{ $subt }} @endforeach @else @foreach ($property->subtypes()->pluck('sub_type_name_ar')->toArray() as $subta) @if ($loop->iteration > 1) , @endif {{ $subta }} @endforeach @endif

{{ $property->property_for }}

{{ $property->options->facing }}

{{ $property->options->finishing_status }}

@lang('site.Property_Description')

@if (app()->getLocale() == 'en') @endif
{!! $property->metadata->description !!}
@if (app()->getLocale() == 'en') @endif
@if (!empty($property->metadata->map_link))

@lang('site.Location')

{!! $property->metadata->map_link !!}
@endif @if ($property->features()->count())

@lang('site.PropertyFeatures')

@foreach ($property->features as $feature)
{{ $feature->name_en }}

{{ $feature->name }}

@endforeach
@endif

@lang('site.current_bid')

@lang('site.estimated_price')

{{ $property->site_price * 0.8 }} {{ $property->site_currency }} - {{ $property->site_price * 1.2 }} {{ $property->site_currency }}

@if (!empty($auction->auction_start_price)) @endif
@csrf
@foreach ($bidders as $bidder)

@lang('site.bidder') {{ $bidder->bidder_id }}

@lang('site.price')

{{ date('d-m-Y', strtotime($bidder->updated_at)) }}
@lang('site.at') {{ date('g:i A', strtotime($bidder->updated_at)) }}

{{ $bidder->price }} {{ $property->site_currency }}

@endforeach
@endsection @section('script') @endsection