@extends('website.layouts.master') @section('css') {{-- --}} @stop @section('script.title') @stop @section('content')

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

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

@foreach($latest_auctions as $latest_auction ) @php $latest_auction_translation = $latest_auction->translations->where('language_id',getLocaleId())->first(); @endphp @endforeach
{{__('theme.available_auctions')}}
@if($auctions->count())
@foreach($auctions as $auction) @php $auction_translation = $auction->translations->where('language_id',getLocaleId())->first(); @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
@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 {{$days}} {{__('theme.Days')}} {{$hours}} {{__('theme.Hours')}} {{$minutes}} {{__('theme.Minutes')}}
@endforeach
{{ $auctions->links('vendor.pagination.default') }}
@else
{{ trans('theme.no_auctions_found') }}
@endif
@stop @section('script') @stop