@extends('layouts.app') @section('content')
{{ app()->getLocale() == 'ar' ? 'الكود' : 'Code' }}
{{ $branch->code }}
{{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }}
{{ $branch->status == 'active' ? (app()->getLocale() == 'ar' ? 'نشط' : 'Active') : (app()->getLocale() == 'ar' ? 'معطل' : 'Inactive') }}
{{ app()->getLocale() == 'ar' ? 'البريد الإلكتروني' : 'Email' }}
{{ $branch->email }}
{{ app()->getLocale() == 'ar' ? 'الهاتف' : 'Phone' }}
{{ $branch->phone }}
{{ app()->getLocale() == 'ar' ? 'العنوان' : 'Address' }}
{{ $branch->address }}
{{ app()->getLocale() == 'ar' ? 'المدينة' : 'City' }}
{{ $branch->city }}
{{ app()->getLocale() == 'ar' ? 'المنطقة' : 'Region' }}
{{ $branch->region }}
{{ $branch->cars()->count() }}
{{ app()->getLocale() == 'ar' ? 'السيارات' : 'Cars' }}
{{ $branch->employees()->count() }}
{{ app()->getLocale() == 'ar' ? 'الموظفين' : 'Employees' }}
{{ $branch->rentals()->where('status', 'open')->count() }}
{{ app()->getLocale() == 'ar' ? 'الحجوزات النشطة' : 'Active Rentals' }}
{{ number_format($branch->rentals()->where('status', 'closed')->sum('total_amount'), 2) }}
{{ app()->getLocale() == 'ar' ? 'إجمالي الإيرادات' : 'Total Revenue' }}
{{ app()->getLocale() == 'ar' ? 'الاسم' : 'Name' }}
{{ $branch->manager->name }}
{{ app()->getLocale() == 'ar' ? 'البريد الإلكتروني' : 'Email' }}
{{ $branch->manager->email }}
{{ $branch->description }}