@extends('backend.app') @push('style') @endpush @section('title', 'Company Analytics - ' . $company->name) @section('content')

{{ $company->name }} - Analytics

Detailed performance metrics and booking insights

@include('backend.partials.breadcrumb', ['items' => [ ['url' => route('dashboard'), 'title' => 'Dashboard', 'icon' => 'fa-solid fa-home'], ['url' => route('companies.analytics'), 'title' => 'Company Analytics', 'icon' => 'fa-solid fa-chart-line'], ['title' => $company->name, 'icon' => 'fa-solid fa-building'] ]])
{{ $days }} Days Period
Total Bookings
{{ $totalBookings }}
@if($growth != 0) {{ number_format(abs($growth), 1) }}% vs previous @endif
Completed
{{ $completedBookings }}
{{ $totalBookings > 0 ? round(($completedBookings / $totalBookings) * 100, 1) : 0 }}% completion rate
Occupancy Rate
{{ number_format($occupancyRate, 1) }}%
Employee slot utilization
Daily Bookings Trend
Last {{ $days }} Days
Recent Bookings
Latest bookings from the last {{ $days }} days
@forelse($bookings as $booking) @empty @endforelse
Booking ID Customer Employee Service Date & Time Status
#{{ $booking->id }} @if($booking->user)
{{ $booking->user->name }}
{{ $booking->user->email }} @else N/A @endif
{{ $booking->employee?->name ?? 'N/A' }} {{ $booking->service?->name ?? 'N/A' }}
{{ $booking->booking_date?->format('M d, Y') ?? 'N/A' }}
{{ $booking->booking_time ?? 'N/A' }}
{{ ucfirst($booking->status) }}

No bookings found for this period.

@push('script') @endpush @endsection