@include('site.controllers.upper-header') @include('site.controllers.header')

@lang('site.auctionDetails')

@foreach($row->images()->get() as $image )
@endforeach
@foreach($row->images()->get() as $image )
@endforeach
{{--
{{$row->title}}--}} {{$row->bids()->count() > 0 ? $row->bids()->orderByDesc('id')->value('price') : 0}} @lang('site.moneySum')
{{-- #{{$row->code}}--}}
{{$row->title}}
#{{$row->code}}
    @if($row->price)
  • @lang('site.soldTo') {{$row->price}} @lang('site.ryal')
  • @endif
  • @lang('site.auctionDuration')@lang('site.duration')
  • @lang('site.city'){{get_city($row->city_id)}}
  • @lang('site.auctionType')type == 'direct') style="color: red" @else style="color: green" @endif >{{$row->type == 'direct' ? trans('site.direct_auction') : trans('site.normalAuction')}}
  • @lang('site.paidMoney'){{$row->price ? $row->price . " ". Lang::get('site.ryal') : trans('site.notPaidYet')}}
  • @if(\Auth::check() && $row->winner_id == \Auth::user()->id)
  • @lang('site.ownerMobile'){{$row->user->mobile}}
  • @endif

@php $start_date = \Carbon\Carbon::parse($row->date); $end_date = \Carbon\Carbon::parse($row->date)->addMinutes(30); @endphp @if(Auth::check() && Auth::user()->subscription_auctions->contains($row) && $start_date <= \Carbon\Carbon::now() && $end_date >= \Carbon\Carbon::now()) @if(\Auth::check() && \Auth::user()->id != $row->user_id) @endif @endif
@foreach($bids as $bid)
{{$bid->user->username}}
{{\Carbon\Carbon::parse($bid->created_at)->diffForHumans()}}

@lang('site.addedSumSumOff') {{$bid->price}} @lang('site.ryal')

@if($row->type == 'normal' && Auth::check() && Auth::user()->id == $row->user_id && !$row->price) @endif

@endforeach

@if(\Carbon\Carbon::now() < $start_date)
{{trans('site.auctionStartAt')}}
@elseif($start_date <= \Carbon\Carbon::now() && $end_date >= \Carbon\Carbon::now())
{{trans('site.auctionEndAt')}}
@elseif($end_date < \Carbon\Carbon::now())
@lang('site.auctionEnd')
@lang('site.auctionEnded')
@endif {{--
--}} {{--
    --}} {{--
  • --}} {{--
    --}} {{--
  • --}} {{--
  • --}} {{--
    --}} {{--
  • --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
  • {{$row->subscriptions()->count()}}@lang('site.activeBidder')
  • {{$row->watches()->count()}}@lang('site.watchesCount')
  • {{--
  • {{$row->bids()->count() > 0 ? $row->bids()->orderByDesc('id')->value('price') : 0}}@lang('site.moneySum')--}} {{--
  • --}}
{{trans('site.auctionType')}}
    @if(Auth::check() && Auth::user()->id == $row->user_id)
  • @lang('site.editAuction')
  • @endif @if(Auth::check() && Auth::user()->id != $row->user_id)
  • @endif @if(Auth::check() && Auth::user()->id != $row->user_id)
  • @endif
  • {{$row->favourites()->count()}}
  • @if(\Auth::check() && $row->user_id == \Auth::user()->id)
  • @endif @if(\Auth::check() && $row->winner_id == \Auth::user()->id)
  • @endif {{--
  • --}}
@if(Auth::check() && !Auth::user()->subscription_auctions->contains($row) && \Auth::id() != $row->user_id ) @if($start_date <= \Carbon\Carbon::now() && $end_date > \Carbon\Carbon::now() || $start_date > \Carbon\Carbon::now() )
@endif @endif
@if($row->code_recieve !='true' && \Auth::check() && \Auth::user()->id == $row->user_id && $row->paid == 'true')
@lang('site.auctionReceiveCode')
@endif

@lang('site.auctionCommission')%

@lang('site.auctionStartCondition')

@lang('site.auctionCondition')

{{trans('site.description')}}

{{$row->description}}

@lang('site.normalDescription')

{!! $setting ? $setting->normal_auction_description[Lang::getLocale()] : '' !!}

@lang('site.directDescription')

{!! $setting ? $setting->direct_auction_description[Lang::getLocale()] : ''!!}

@include('site.controllers.footer') {{----}}