You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.blade.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Dashboard</title>
  7. <link rel="preconnect" href="https://fonts.bunny.net">
  8. <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
  9. <!-- Font Awesome CDN -->
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
  11. integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
  12. crossorigin="anonymous" referrerpolicy="no-referrer" />
  13. @vite(['resources/css/app.css', 'resources/js/app.js'])
  14. <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
  15. </head>
  16. <body class="antialiased bg-gray-100 text-gray-800">
  17. <div x-data="{ sidebarOpen: true }" class="min-h-screen flex p-6" style="gap:25px">
  18. <!-- Sidebar -->
  19. <div :class="sidebarOpen ? 'w-56' : 'w-16'"
  20. class="bg-white border-r border-gray-200 transition-all duration-300 flex flex-col rounded">
  21. <div class="p-4 flex justify-between items-center">
  22. <span x-show="sidebarOpen" class="font-bold border-b-2 p-5">
  23. <img src="./assets/image/logoinvestpahang.png" />
  24. </span>
  25. {{-- <button @click="sidebarOpen = !sidebarOpen" class="text-gray-600 focus:outline-none">
  26. <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  27. <path :class="sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round"
  28. stroke-width="2" d="M6 18L18 6M6 6l12 12" />
  29. <path :class="!sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round"
  30. stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
  31. </svg>
  32. </button> --}}
  33. </div>
  34. <nav class="flex-1 px-2 space-y-2" x-show="sidebarOpen">
  35. <!-- Dashboard -->
  36. <a href="/" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
  37. <i class="fa-solid fa-table-columns w-4 text-xs text-[#BD8736]"></i>
  38. <span>Dashboard</span>
  39. </a>
  40. <a href="/agency" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
  41. <i class="fa-solid fa-paste w-4 text-xs text-[#BD8736]"></i>
  42. <span>Senarai Agensi</span>
  43. </a>
  44. <a href="/project" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
  45. <i class="fa-solid fa-folder-open w-4 text-xs text-[#BD8736]"></i>
  46. <span>Senarai Projek</span>
  47. </a>
  48. <a href="/agency_performance" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
  49. <i class="fa-solid fa-coins w-4 text-xs text-[#BD8736]"></i>
  50. <span>Laporan Agensi</span>
  51. </a>
  52. <!-- Projects (with children) -->
  53. {{-- <div x-data="{ open: false }" class="space-y-1">
  54. <button @click="open = !open"
  55. class="w-full flex items-center justify-between px-4 py-2 rounded hover:bg-gray-200 text-left">
  56. <div class="flex items-center gap-2">
  57. <i class="fas fa-folder w-4 text-xs text-[#BD8736]"></i>
  58. <span>Projects</span>
  59. </div>
  60. <svg :class="{ 'rotate-90': open }" class="w-4 h-4 transition-transform" fill="none"
  61. stroke="currentColor" viewBox="0 0 24 24">
  62. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
  63. </svg>
  64. </button>
  65. <div x-show="open" x-transition class="pl-10">
  66. <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">All Projects</a>
  67. <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">Create Project</a>
  68. </div>
  69. </div> --}}
  70. </nav>
  71. </div>
  72. <!-- Content -->
  73. <div class="flex-1 overflow-y-scroll overflow-x-hidden" style="max-height: 93vh">
  74. @yield('content')
  75. </div>
  76. @yield('scripts')
  77. </div>
  78. </body>
  79. </html>