@extends('layouts.app') @section('content')

إدارة workspace Ensan

إضافة مساحة
{{ number_format($totalRevenue, 2) }} ج.م
إجمالي الأرباح (الإيرادات)
{{ number_format($totalExpenses, 2) }} ج.م
إجمالي المصروفات
{{ number_format($netBalance, 2) }} ج.م
صافي الحسابات
@foreach($workspaces as $w)
{{ mb_substr($w->name, 0, 1) }}
{{ $w->name }}
{{ $w->location ?? '—' }}
{{ $w->status === 'available' ? 'متاح' : ($w->status === 'busy' ? 'مشغول' : 'صيانة') }}
السعة{{ $w->capacity ?? '—' }}
سعر الساعة{{ $w->price_per_hour ?? '—' }}
@if($w->manager)
المدير{{ $w->manager->name }}
@endif @if($w->amenities)
{{ $w->amenities }}
@endif
عرض تعديل
@csrf @method('DELETE')
@endforeach
{{ $workspaces->links() }}
جدول اليوم
@forelse($todayRentals as $rental)
{{ $rental->workspace->name }} {{ $rental->status }}
{{ $rental->start_time->format('H:i') }} - {{ $rental->end_time->format('H:i') }}
{{ $rental->renter_name }}
@empty
لا توجد حجوزات لليوم
@endforelse
@endsection