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

{{ $workspace->name }}

{{ $workspace->location ?? 'غير محدد' }}

{{ $workspace->status }} {{ $workspace->capacity }} شخص
@if($workspace->amenities)
@foreach(explode(',', $workspace->amenities) as $amenity) {{ trim($amenity) }} @endforeach
@endif
{{ $workspace->rentals()->count() }}
إجمالي الحجوزات
{{ number_format($totalRevenue, 2) }} ج.م
الإيرادات (المؤكدة)
{{ number_format($totalExpenses, 2) }} ج.م
إجمالي المصروفات
{{ number_format($netBalance, 2) }} ج.م
صافي الحسابات
{{ $workspace->rentals()->where('status', 'confirmed')->count() }}
حجوزات مؤكدة
{{ $workspace->price_per_hour }} ج.م
سعر الساعة
{{ $workspace->price_per_day }} ج.م
سعر اليوم
سجل الحجوزات
@forelse($rentals as $rental)
{{ $rental->renter_name }}
{{ $rental->renter_phone }}
{{ $rental->start_time->format('Y-m-d H:i') }} {{ $rental->end_time->format('Y-m-d H:i') }}
{{ $rental->total_price }} ج.م
{{ $rental->status }}
@if($rental->notes)
{{ $rental->notes }}
@endif
@empty
لا توجد حجوزات حتى الآن
@endforelse {{ $rentals->links() }}
تسجيل تأجير القاعة
@csrf
@endsection