@extends('tenant.rentals.rentals-tabs') @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.rentals') => '/rentals', __('breadcrumb.floors')=> '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'rentals.floors']) @endsection @section('style') @endsection @php $activeTab = 'rentals-floors'; @endphp @section('content-field')
@can('rentals-floors-add') @lang('rentals/floors/index.add_floor') @endcan
@php $table_options = [ 'sumValuesCell' => 'span', 'enableSumValuesOnColumns' => [4], 'lang' => ['noAvailableData' => __('noAvailableData.no_buildings_yet')], ]; @endphp @php $area_sum = 0; @endphp @forelse ($floors as $floor) @php $area_sum += $floor->area; @endphp @empty @endforelse @if (!$floors->isEmpty()) @endif
# @lang('rentals/floors/index.building') @lang('rentals/floors/index.number') @lang('rentals/floors/index.name') @lang('rentals/floors/index.area') @lang('rentals/floors/index.creation_date') @lang('general.procedures')
{{ $loop->iteration }} {{ $floor->building->title ?? '' }} {{ $floor->number }} {{ $floor->title }} {{ $floor->area }} {{ $floor->created_at->format('Y-m-d') }} @can('rentals-floors-edit')
  • @lang('general.edit')
  • @endcan @can('rentals-floors-delete')
  • @csrf @method('delete')
  • @endcan
    @lang('rentals/floors/index.no_floors_yet')
    @lang('general.total') {{ dn($area_sum) }} @lang('rentals/floors/index.meter')
    {!! $floors->links() !!}
    @endsection @push('script') @endpush