@extends('tenant.rentals.rentals-tabs') @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.rentals') => '/rentals', __('breadcrumb.buildings') => '#', ], ]) @endsection @php $activeTab = 'rentals-buildings'; @endphp @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'rentals.buildings']) @endsection @section('style') @endsection @section('content-field')
| # | {{--نوع المبنى | --}}@lang('rentals/buildings/index.address') | @lang('rentals/buildings/index.area') | @lang('rentals/buildings/index.land') | @lang('rentals/buildings/index.attachments') | @lang('rentals/buildings/index.number_of_floors') | @lang('rentals/buildings/index.construction_date') | @lang('rentals/buildings/index.starting_work_permit_date') | @lang('rentals/buildings/index.expire_work_permit_date') | @lang('general.procedures') |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{--{{ $building->building_type->name }} | --}}{{ $building->title }} | {{ $building->area }} @lang('rentals/buildings/index.meter') | {{ $building->earth_place }} |
@if ($building->attachments)
@php $files = (array)json_decode($building->attachments); @endphp
@foreach ($files as $file)
@endforeach
@else
@lang('rentals/buildings/index.no_attachments_yet') @endif |
{{ $building->floors_count }} | {{ $building->created_at->format(config('app.date_format')) }} | {{ $building->starting_work_permit_date }} | @if ($building->expire_work_permit_date) @if (parse_date_to_carbon($building->expire_work_permit_date) > now()) {{ $building->expire_work_permit_date }} @else {{ $building->expire_work_permit_date }} @endif @endif |
|
| @lang('rentals/buildings/index.no_buildings_yet') | ||||||||||
| @lang('general.total') | {{ dn($area_sum) }} @lang('rentals/buildings/index.meter') | -- | ||||||||