Loading resources/views/dives.blade.php +18 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,13 @@ @foreach ($dives as $dive) <tr class="odd:bg-white even:bg-gray-50"> <td class="px-12 py-4">{{ $dive->DS_DATE }}</td> <td class="px-12 py-4">{{ $dive->CAR_SCHEDULE }}</td> @if( $dive->CAR_SCHEDULE=='Matin') <td class="px-12 py-4">9h</td> @elseif ( $dive->CAR_SCHEDULE=='Apres-midi') <td class="px-12 py-4">14h</td> @else <td class="px-12 py-4">18h</td> @endif <td class="px-12 py-4">{{ $dive->DL_DEPTH }}m</td> <td class="px-12 py-4">{{ $dive->DL_NAME }}</td> <td class="px-12 py-4 flex"> Loading @@ -27,6 +33,7 @@ <svg class="ml-2" xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg> </td> <td class="px-12 py-4"> @if ( $dive->DS_DIVERS_COUNT > 0) <x-button diveId="dropdownButton-{{ $dive->DS_CODE }}"> <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 18"> Loading @@ -34,6 +41,16 @@ d="M14 2a3.963 3.963 0 0 0-1.4.267 6.439 6.439 0 0 1-1.331 6.638A4 4 0 1 0 14 2Zm1 9h-1.264A6.957 6.957 0 0 1 15 15v2a2.97 2.97 0 0 1-.184 1H19a1 1 0 0 0 1-1v-1a5.006 5.006 0 0 0-5-5ZM6.5 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 10H5a5.006 5.006 0 0 0-5 5v2a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-2a5.006 5.006 0 0 0-5-5Z" /> </svg> </x-button> @else <x-button> <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 18"> <path d="M14 2a3.963 3.963 0 0 0-1.4.267 6.439 6.439 0 0 1-1.331 6.638A4 4 0 1 0 14 2Zm1 9h-1.264A6.957 6.957 0 0 1 15 15v2a2.97 2.97 0 0 1-.184 1H19a1 1 0 0 0 1-1v-1a5.006 5.006 0 0 0-5-5ZM6.5 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 10H5a5.006 5.006 0 0 0-5 5v2a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-2a5.006 5.006 0 0 0-5-5Z" /> </svg> </x-button> @endif <a href='/dives/{{ $dive->DS_CODE }}'> @if ($userPre->PRE_MAX_DEPTH > $dive->DS_MAX_DEPTH) <x-button color="bg-green-700" colorHover="hover:bg-green-800"> Loading Loading
resources/views/dives.blade.php +18 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,13 @@ @foreach ($dives as $dive) <tr class="odd:bg-white even:bg-gray-50"> <td class="px-12 py-4">{{ $dive->DS_DATE }}</td> <td class="px-12 py-4">{{ $dive->CAR_SCHEDULE }}</td> @if( $dive->CAR_SCHEDULE=='Matin') <td class="px-12 py-4">9h</td> @elseif ( $dive->CAR_SCHEDULE=='Apres-midi') <td class="px-12 py-4">14h</td> @else <td class="px-12 py-4">18h</td> @endif <td class="px-12 py-4">{{ $dive->DL_DEPTH }}m</td> <td class="px-12 py-4">{{ $dive->DL_NAME }}</td> <td class="px-12 py-4 flex"> Loading @@ -27,6 +33,7 @@ <svg class="ml-2" xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg> </td> <td class="px-12 py-4"> @if ( $dive->DS_DIVERS_COUNT > 0) <x-button diveId="dropdownButton-{{ $dive->DS_CODE }}"> <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 18"> Loading @@ -34,6 +41,16 @@ d="M14 2a3.963 3.963 0 0 0-1.4.267 6.439 6.439 0 0 1-1.331 6.638A4 4 0 1 0 14 2Zm1 9h-1.264A6.957 6.957 0 0 1 15 15v2a2.97 2.97 0 0 1-.184 1H19a1 1 0 0 0 1-1v-1a5.006 5.006 0 0 0-5-5ZM6.5 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 10H5a5.006 5.006 0 0 0-5 5v2a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-2a5.006 5.006 0 0 0-5-5Z" /> </svg> </x-button> @else <x-button> <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 18"> <path d="M14 2a3.963 3.963 0 0 0-1.4.267 6.439 6.439 0 0 1-1.331 6.638A4 4 0 1 0 14 2Zm1 9h-1.264A6.957 6.957 0 0 1 15 15v2a2.97 2.97 0 0 1-.184 1H19a1 1 0 0 0 1-1v-1a5.006 5.006 0 0 0-5-5ZM6.5 9a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 10H5a5.006 5.006 0 0 0-5 5v2a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-2a5.006 5.006 0 0 0-5-5Z" /> </svg> </x-button> @endif <a href='/dives/{{ $dive->DS_CODE }}'> @if ($userPre->PRE_MAX_DEPTH > $dive->DS_MAX_DEPTH) <x-button color="bg-green-700" colorHover="hover:bg-green-800"> Loading