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

{{ $branch->name }}

{{ app()->getLocale() == 'ar' ? 'تعديل' : 'Edit' }} {{ app()->getLocale() == 'ar' ? 'عودة' : 'Back' }}

{{ app()->getLocale() == 'ar' ? 'معلومات الفرع' : 'Branch Information' }}

{{ 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' }}

@if($branch->manager)

{{ app()->getLocale() == 'ar' ? 'مدير الفرع' : 'Branch Manager' }}

{{ app()->getLocale() == 'ar' ? 'الاسم' : 'Name' }}

{{ $branch->manager->name }}

{{ app()->getLocale() == 'ar' ? 'البريد الإلكتروني' : 'Email' }}

{{ $branch->manager->email }}

@endif @if($branch->description)

{{ app()->getLocale() == 'ar' ? 'الوصف' : 'Description' }}

{{ $branch->description }}

@endif
@endsection