index.blade.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @extends('layouts.app')
  2. @section('content')
  3. <style>
  4. tr {
  5. border-bottom: 1px solid #000;
  6. }
  7. tbody tr:last-child {
  8. border-bottom: none;
  9. }
  10. td {
  11. padding-left: 10px; /* ou margin-left: 10px; */
  12. }
  13. </style>
  14. <table class="w-full bg-jlg-dark-blue flex justify-center">
  15. <thead>
  16. <tr class="border-jlg-white h-64 top-0 w-full lg:w-2/3 fixed flex items-stretch justify-around text-left lg:text-xl uppercase bg-jlg-dark-blue">
  17. <th class="flex items-end justify-start"></th>
  18. <th class="flex items-end justify-start pb-4">Images</th>
  19. <th class="flex items-end justify-start pb-4">Voix Off et In</th>
  20. <th class="flex items-end justify-start pb-4">Bande Son</th>
  21. <th class="flex items-end justify-start pb-4">Écrits</th>
  22. </tr>
  23. </thead>
  24. <tbody class="w-full lg:w-2/3 block bg-jlg-dark-blue">
  25. <?php
  26. $args = array(
  27. 'post_type' => 'post',
  28. 'posts_per_page' => -1,
  29. 'meta_key' => 'Index',
  30. 'meta_type' => 'NUMERIC',
  31. 'orderby' => 'meta_value',
  32. 'order' => 'ASC'
  33. );
  34. $query = new WP_Query($args);
  35. if ($query->have_posts()) :
  36. while ($query->have_posts()) : $query->the_post();
  37. ?>
  38. <tr class="border-jlg-white font-authentic-60 w-full flex flex-row py-6">
  39. <td class="block text-sm pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
  40. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
  41. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
  42. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
  43. <td class="block pl-0 pr-6">{{ get_post_meta(get_the_ID(), 'Ecrits', true) }}</td>
  44. </tr>
  45. <?php
  46. endwhile;
  47. endif;
  48. wp_reset_postdata();
  49. ?>
  50. </tbody>
  51. </table>
  52. @if (! have_posts())
  53. <x-alert type="warning">
  54. {!! __('Sorry, no results were found.', 'sage') !!}
  55. </x-alert>
  56. {!! get_search_form(false) !!}
  57. @endif
  58. @endsection