@extends('website.layouts.master') {{--@section('title') {{__('website.special_offers')}} @stop--}} @section('css') @stop @section('head') @stop @section('content') @php $auction_translation = $auction->translations->where('language_id',getLocaleId())->first(); if($auction->category) {$category_translation = $auction->category->translations->where('language_id',getLocaleId())->first();} @endphp
@if($auction->images->count() != null)
@php $pImg = get_product_img_src($auction, 'large'); @endphp {{ $auction->title }}
    @php $item_images = $auction->images->count() ? $auction->images : $auction->images; if (isset($variants)) { // Remove images of current items from the variants imgs $other_images = $variants ->pluck('images') ->flatten(1) ->filter(function ($value, $key) use ($auction) { return $value->imageable_id != $auction->id; }); $item_images = $item_images->concat($other_images); } @endphp @foreach ($item_images as $img) @continue(!$img->path) @php $fImg = get_storage_file_url($img->path, 'full'); @endphp
  • Thumb
  • @endforeach
@else @endif

{{$auction_translation->title ?? $auction->title}}

@if($auction->bids()->count() > 0 ) @php $amount_paid = $auction->bids()->max('price'); @endphp {{__('theme.amount_paid')}}: {{get_formated_currency($amount_paid, 2)}} @else {{__('theme.start_price')}}: {{get_formated_currency($auction->start_price, 2)}} @endif

{!! Str::limit(($auction_translation->description ?? $auction->description),200) !!}

@if($auction->cateory) @endif

{!! $auction_translation->description ?? $auction->description !!}

@if($auction->cateory) @endif
{{__('theme.title')}} {{$auction_translation->title ?? $auction->title}}
{{__('theme.store')}} {{$auction->shop->name}}
{{__('theme.category')}} {{$category_translation->name ?? $auction->category->name}}
{{__('theme.quantity')}} {{$auction->quantity}}
{{__('theme.start_price')}} {{get_formated_currency($auction->start_price, 2)}}
{{__('theme.start_date')}} {{$auction->start_date}}
{{__('theme.end_date')}} {{$auction->end_date}}
@php $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
{{__('theme.Days')}} {{$days}}
{{__('theme.Hours')}} {{$hours}}
{{__('theme.Minutes')}} {{$minutes}}
@if (Auth::guard('customer')->check()) @include('website.modals.add_price_auction') @endif @stop @section('script') @stop