florida_gym/resources/views/welcome.blade.php
2026-03-11 11:03:12 +05:30

43 lines
1.3 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>GymPro Login</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
<style>
body { font-family: 'Outfit', sans-serif; }
</style>
<script>
@php
$owner = Auth::guard('web')->user();
$receptionist = Auth::guard('receptionist')->user();
$user = $owner ?? $receptionist;
$role = $owner ? 'owner' : ($receptionist ? 'receptionist' : null);
$branchData = null;
if ($receptionist) {
$receptionist->load('branch');
$branchData = $receptionist->branch;
}
@endphp
window.__APP_DATA__ = {
user: @json($user),
role: "{{ $role }}",
branch: @json($branchData)
};
</script>
@viteReactRefresh
@vite(['resources/css/app.css', 'resources/js/app.jsx'])
</head>
<body class="antialiased">
<div id="app"></div>
</body>
</html>