@extends('admin.layout.app') @section('title', $pageTitle . ' | LVT ') @section('content')

{{ $pageTitle }} {{ Carbon\Carbon::parse($selectedDate)->format('d/m/Y') }}

@include('components.dashboard-filters', [ 'dashboard' => 'statistics', 'action' => route('dashboard.index'), 'data' => [] ])
Doanh thu (Hôm nay)
{{ format_currency($statsToday['revenue']) }}
@php $revDiff = $statsToday['revenue'] - $statsYesterday['revenue']; @endphp {{ format_currency(abs($revDiff)) }} so với hôm qua
Chi phí (Hôm nay)
{{ format_currency($statsToday['cost']) }}
@php $costDiff = $statsToday['cost'] - $statsYesterday['cost']; @endphp {{ format_currency(abs($costDiff)) }} so với hôm qua
Lợi nhuận (Hôm nay)
{{ format_currency($statsToday['profit']) }}
@php $profitDiff = $statsToday['profit'] - $statsYesterday['profit']; @endphp {{ format_currency(abs($profitDiff)) }} so với hôm qua
Lợi nhuận %
{{ number_format($statsToday['margin'], 1) }}%
@if(Auth::user()->role_id == 1)
@endif
Tổng số App
{{ $appStats['total'] }}
App đang hoạt động
{{ $appStats['active'] }}
App có dữ liệu hôm nay
{{ $appStats['with_data'] }}
App đang lỗ
{{ $appStats['with_loss'] }}
Biểu đồ xu hướng theo giờ
Những app hiệu quả nhất trong ngày
@forelse($topApps as $app) @empty @endforelse
Tên App Lợi nhuận
{{ Str::limit($app->app_name, 45) }}
{{ format_currency($app->profit) }}
Chưa có dữ liệu cho ngày này
@if(Auth::user()->role_id == 1)
Danh sách marketing và số lượng App phụ trách
@forelse($usersWithApps as $index => $user) @empty @endforelse
Tên User Email Số lượng App
{{ $user->name }}
{{ $user->email }} {{ $user->app_count }}
Không có user nào với vai trò là marketing
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush