@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.buildings')

@can('rentals-buildings-add') @lang('rentals/buildings/index.add_new_building') @endcan
{{-- --}} @php $area_sum = 0; @endphp @forelse ($buildings as $building) {{-- --}} @php $area_sum += $building->area; @endphp @empty @endforelse @if (!$buildings->isEmpty()) @endif
#نوع المبنى@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)
@csrf
@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 @can('rentals-buildings-show')
  • @lang('rentals/buildings/index.view')
  • @endcan @can('rentals-buildings-edit')
  • @lang('general.edit')
  • @endcan @can('rentals-buildings-delete')
  • @csrf @method('delete')
  • @endcan {{--
  • عرض كثلاثي الأبعاد
  • --}}
    @lang('rentals/buildings/index.no_buildings_yet')
    @lang('general.total') {{ dn($area_sum) }} @lang('rentals/buildings/index.meter') --
    {!! $buildings->links() !!}
    @endsection @push('script') @endpush