@extends('layouts.master') @section('css') @endsection @section('title') {{ __('realestate.properties') }} @endsection @section('page-header')
@if ($errors->any())| # | {{ __('realestate.name') }} | {{ __('realestate.owner_name') }} | {{ __('realestate.city') }} | {{ __('realestate.type') }} | {{ __('realestate.annual_rent') }} | {{ __('realestate.total_unit') }} | {{ __('realestate.vacant') }} | {{ __('realestate.rented') }} | {{ __('realestate.commission_rate') }} | {{ __('realestate.attachments') }} | {{ __('realestate.actions') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $properties->firstItem() + $index }} | {{ $property->name }} | {{ $property->owner->name ?? '-' }} | {{ $property->city }} - {{ $property->district }} | @if($property->type == 'sale') {{ __('realestate.sale') }} @else {{ __('realestate.rent') }} @endif | @if($property->type == 'sale') {{ number_format($property->sale_price, 2) }} @else {{ number_format($property->annual_rent, 2) }} / {{ __('realestate.year') }} @endif | {{ $property->units->count() }} | {{ $property->units->where('is_rented', 0)->count() }} | {{ $property->units->where('is_rented', 1)->count() }} | {{ $property->commission_rate ?? '-' }} | {{ __('realestate.attachments') }} |