Refactor app layout to enable PWA support with updated meta tags and service worker registration

This commit is contained in:
dhanabalan
2025-11-04 14:10:08 +05:30
parent 54e0760f94
commit 15c2a80b3b

View File

@@ -42,7 +42,7 @@
@yield('content') @yield('content')
</body> </body>
</html> --}} </html> --}}
<!DOCTYPE html> {{-- <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@@ -63,5 +63,27 @@
@RegisterServiceWorkerScript @RegisterServiceWorkerScript
</body> </body>
</html> --}}
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title', 'Weight Scale Validation')</title>
<!-- Laravel PWA manifest and meta tags -->
@laravelPWA
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
</head>
<body>
@yield('content')
<script src="{{ mix('js/app.js') }}"></script>
</body>
</html> </html>