{{$page_title}}

@if(!$units->count()) @include('Admin.Layouts.Partials._empty') @else @include('Frontend.Partials._messages')
@foreach($units as $unit) @php $subPeriod = $unit?->association?->subscription_period; @endphp @endforeach
رقم الوحدة مالك الوحدة الجمعية نوع الملكية عدد الشركاء نسبة الملكية دورة الاشتراك قيمة الاشتراك العنوان رقم عداد المياه رقم عداد الكهرباء ملاحظات إجراءات
#{{$unit->id}} {{($unit?->associationMember?->name ?? 'غير معروف') }} {{($unit?->association?->name ?? 'غير معروفة') }}

@if($unit->ownership_type == 'group') @else @endif {{__('labels.ownership.'.$unit->ownership_type)}}

{{$unit->partners_amount ?? 'لا يوجد شركاء'}} {{$unit->ownership_ratio ?? 100}}% {{subPeriodText($subPeriod)}} {{currency($unit->fee_type_total * $subPeriod)}} {{$unit->address}} {{$unit->water_meter_serial}} {{$unit->electricity_meter_serial}} {{$unit->notes ?? '--'}}
@csrf @method('delete')
@endif
{{ $units->links() }}