Total Employees
{{ $totalEmployees }}
{{ $activeEmployees }} active
Total Bookings
{{ $totalBookings }}
{{ $completedBookings }} completed
Services
{{ $totalServices }}
Active listings
Rating
{{ $avgRating['rating'] }}
{{ $totalReviews }} reviews
Company Information
Company Name
{{ $company->name }}
Website
Categories
@foreach($company->categories as $category)
{{ $category }}
@endforeach
Address
{{ $company->address }}
@if($company->city), {{ $company->city }}@endif
Team Size
{{ $company->team_size }} members
Member Since
{{ $company->created_at->format('M d, Y') }}
Owner Information
@if($company->user)
@if($company->user->address)
@endif
@else
@endif
@if($company->user->avatar)
@else
{{ strtoupper(substr($company->user->name, 0, 1)) }}
@endif
{{ $company->user->name }}
{{ $company->user->email }}
Phone
@if($company->user->phone)
{{ $company->user->phone }}
@else
Not provided
@endif
Address
{{ $company->user->address }}
Account Status
@if($company->user->status == 'active')
Active
@else
Inactive
@endif
No owner information available
Subscription Status
{{ ucfirst($company->subscription_status ?? 'inactive') }}
@if($company->subscription_ends_at)
@if($company->subscription_ends_at->isFuture())
Expires in {{ $company->subscription_ends_at->diffForHumans() }}
@else
Expired {{ $company->subscription_ends_at->diffForHumans() }}
@endif
@endif
Subscription End Date
@if($company->subscription_ends_at)
{{ $company->subscription_ends_at->format('M d, Y') }}
@else
Not set
@endif
Total Bookings
{{ $company->total_bookings ?? 0 }}
@if($company->about)
@endif
@if($company->openingTimes)
@endif
@if($company->images && $company->images->isNotEmpty())
About Company
{{ $company->about }}
Opening Hours
@php
$days = [
'monday' => 'Monday',
'tuesday' => 'Tuesday',
'wednesday' => 'Wednesday',
'thursday' => 'Thursday',
'friday' => 'Friday',
'saturday' => 'Saturday',
'sunday' => 'Sunday'
];
@endphp
@foreach($days as $key => $day)
@if($company->openingTimes->$key)
@php
$hours = json_decode($company->openingTimes->$key, true);
$isOpen = is_array($hours) && !empty($hours);
@endphp
{{ $day }}
@if($isOpen)
@foreach($hours as $index => $slot)
@if(isset($slot['start']) && isset($slot['end']))
{{ $slot['start'] }} - {{ $slot['end'] }}
@if($index < count($hours) - 1), @endif
@endif
@endforeach
@else
Closed
@endif
@endif
@endforeach
Gallery
@foreach($company->images as $image)
@endforeach
Active Employees (Latest 5)
| Name | Job Title | Status | |
|---|---|---|---|
| @if($employee->user) {{ $employee->user->name }} @else N/A @endif | @if($employee->user) {{ $employee->user->email }} @else N/A @endif | {{ $employee->job_title ?? 'N/A' }} | {{ ucfirst($employee->status) }} |
Recent Bookings (Latest 5)
| Booking ID | Customer | Employee | Date & Time | Status |
|---|---|---|---|---|
| #{{ $booking->id }} | @if($booking->user) {{ $booking->user->name }} @else N/A @endif | @if($booking->employee && $booking->employee->user) {{ $booking->employee->user->name }} @else N/A @endif |
{{ $booking->booking_date?->format('M d, Y') ?? 'N/A' }}
{{ $booking->booking_time ?? 'N/A' }}
|
{{ ucfirst($booking->status) }} |