@extends('website.layouts.master') @section('content')
@foreach ($sliders as $slider) @php $slider_translation = \App\Models\SliderTranslation::where('slider_id',$slider['id'])->where('language_id',getLocaleId())->first(); @endphp
@if ($slider['sub_title'] || $slider['title'] || $slider['description'])
@endif {{ $slider['title'] ?? 'Slider Image ' }}
@endforeach
@if (isset($announcements_top))
@foreach($announcements_top as $announcement_top) @endforeach {{-- --}} {{-- --}} {{-- --}}
@endif
{{__('theme.toDays_specials')}}
@foreach($daily_popular as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp
{!! get_formated_price($item->current_sale_price(), config('system_settings.decimals', 2)) !!} @if ($item->hasOffer())

{!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!}

@endif
@endforeach
{{--
أعلى المنتجات تقيماً
--}}
{{__('theme.featured_category')}}
@foreach($featured_category as $item) {{-- @dd($item->translations()->where('language_id',getLocaleId())->first())--}}

{{-- @if(isset($item->translations->where('language_id',getLocaleId())) != null)--}} @php $translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp {{-- @endif--}} {{ $translation->name ?? $item->name}}

{{--
{{ trans('theme.listings_count', ['count' => $item->listings_count]) }}
--}}
@endforeach
@if (isset($announcements_bottom))
@foreach($announcements_bottom as $announcement_bottom) @endforeach {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
@endif
@include('website.home.main_section') @if($featured_auctions->count())

@php $featured_auction_translation = $featured_auctions[0]->translations->where('language_id',getLocaleId())->first(); @endphp {{$featured_auction_translation->title ?? $featured_auctions[0]->title}}

@php $seconds = strtotime($featured_auctions[0]->end_date) - time(); $days = floor($seconds / 86400); $seconds %= 86400; $hours = floor($seconds / 3600); $seconds %= 3600; $minutes = floor($seconds / 60); $seconds %= 60; @endphp {{__('theme.Days').' '}}| {{$days}} {{__('theme.Hours').' '}}| {{$hours}} {{__('theme.Minutes').' '}}| {{$minutes}}
@foreach($featured_auctions as $key=>$auction) @if($key != 0) @php $auction_translation = $auction->translations->where('language_id',getLocaleId())->first(); $seconds = strtotime($auction->end_date) - time(); $days = floor($seconds / 86400); $seconds %= 86400; $hours = floor($seconds / 3600); $seconds %= 3600; $minutes = floor($seconds / 60); $seconds %= 60; @endphp
@if($auction->bids()->count() > 0 ) @php $amount_paid = $auction->bids()->max('price'); @endphp {{__('theme.amount_paid')}} | {{get_formated_currency($amount_paid, config('system_settings.decimals', 2))}} @else {{__('theme.start_price')}} | {{get_formated_currency($auction->start_price, config('system_settings.decimals', 2))}} @endif
{{$days}} {{__('theme.Days')}} {{$hours}} {{__('theme.Hours')}} {{$minutes}} {{__('theme.Minutes')}}
@endif @endforeach
@endif

{{__('theme.stats_and_figures')}}

{{$shops}} {{__('theme.nav.shops')}} {{$customers}} {{__('theme.nav.customers')}}
{{$inventories}} {{__('theme.products')}}
@if($featured_tenders->count())
@foreach($featured_tenders as $tender) @php $tender_translations = $tender->translations->where('language_id',getLocaleId())->first() @endphp
{{$tender->created_at->format('d')}} {{$tender->created_at->format('Y-m')}}
@endforeach
@endif @if($blogs->count())
@foreach($blogs as $blog) @php $blog_translation = $blog->translations->where('language_id',getLocaleId())->first(); @endphp
@endforeach

{{__('theme.request_visit')}}

{{__('theme.you_can_request_visit')}}
{{__('theme.request_now')}}
@endif @stop @section('script') @stop