@extends('layouts.admin') @section('content')
@can('can view reports')

التقارير

@if(is_admin()) @endif @can('can filter reports')
@if(!empty(request()->all())) @endif
@endcan
{{-- @if(is_admin())--}} @can('can view total')
إجمالي الارباح {{currency($sum)}}
@endcan {{-- @endif--}} @if(request()->get('sector') != '' || is_sector_admin()) @can('can view percentage')
%
نسبة القطاع {{$percentage.'%'}}
@endcan @endif @if(request()->get('sector') != '' || is_sector_admin()) @can('can view total sector')
ارباح القطاع {{currency($total)}}
@endcan @endif
@foreach($rows as $row) @can('can view rental barcode in reports') @endcan @endforeach
اسم المستثمر رقم الجوال القطاع الشاطئ رقم الفيلا الخدمات إجمالي الخدمات
{{@$row->user->name ?? ''}} {{@$row->user->phonenumber ?? ''}} {{@$row->sector->sector_name ?? ''}} {{@$row->beach->beach ?? ''}} {{$row->unit->unit_number ?? ''}} الخدمات {{currency_format($row->services_total)}}
{{$rows->appends(request()->all())->links()}}
@else @include('admin.no-permissions') @endcan
@endsection @section('scripts') @endsection