@extends('template.layout') @section('title', 'Houses') @section('submenuItem', 'houses') @section('metaTag') @endsection @section('styles') @endsection @section('content')
{{ $house->name }}
This house has {{ $house->beds }} beds.

The house has a size of {{ $house->size }} square meters. The monthly rent is {{ $house->rent }} gold and will be debited to the depot in {{ \App\Utils\Town::getTownById($house->town_id)['name'] }}.

@if($house->owner) The house has been rented by {{ $house->ownerPlayer->name }}. He has paid the rent until {{ date('M d, Y', $house->paid) }}, {{ config('server.serverSaveTime') }} {{ config('server.serverTimeZone') }}. @if($house->moveOut) He will move out on {{ \Carbon\Carbon::parse($house->moveOut->date)->format('M, d, Y') }}, {{ config('server.serverSaveTime') }} {{ config('server.serverTimeZone') }} (time of daily server save) @if($house->moveOut->transfer) and @if($house->moveOut->transfer->accepted) will pass @else wants to pass @endif the house to {{ $house->moveOut->transfer->player->name }} for {{ $house->moveOut->transfer->price }} gold coins. @endif @endif @else @if($house->bid === 0) The house is currently being auctioned. No bid has been submitted so far. @else The house is currently being auctioned. The auction will end at {{ date('M d, Y', $house->bid_end) }}, {{ config('server.serverSaveTime') }} {{ config('server.serverTimeZone') }}. The highest bid so far is {{ $house->last_bid }} gold and has been submitted by {{ $house->highestBidderPlayer->name }}. @endif @endif

@if(Auth::check()) @if($house->owner) @if($house->moveOut && $house->moveOut->transfer && !$house->moveOut->transfer->accepted) @if($house->moveOut->transfer->player->account_id === Auth::user()->id)
@endif @endif @if($house->ownerOnLoggedInAccount()) @if($house->moveOut) @if($house->moveOut->transfer && !$house->moveOut->transfer->accepted) @if(!$house->moveOut->transfer->accepted)
@endif @endif @if($house->moveOut && !$house->moveOut->transfer)
@endif @else
@endif @endif @else
@endif @else
@endif
@endsection @section('scripts') @endsection