suche.blade.php 950 B

1234567891011121314151617181920
  1. <x-app-layout>
  2. <x-slot name="header">
  3. <h2 class="font-semibold text-xl text-burnt leading-tight">
  4. {{ __($title) }}
  5. </h2>
  6. </x-slot>
  7. <div class="py-12">
  8. <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 text-crayola" x-data="{term: ''}">
  9. <div class="w-full sm:rounded-lg bg-coal px-6 py-4 shadow-md overflow-hidden">
  10. <label for="suche" class="block font-medium text-sm text-crayola">Suche nach Film</label>
  11. <input id="suche" x-model.debounce.500ms="term" type="search" class="rounded-xl shadow-md border-field focus:border-burnt bg-fogra block mt-1 w-full" autofocus="autofocus"> </div>
  12. <div x-show="term !== ''">
  13. <div x-html="(await axios.get('/api/search/' + term)).data"></div>
  14. <div x-html="(await axios.get('/api/remotesearch/' + term)).data"></div>
  15. </div>
  16. </div>
  17. </div>
  18. </x-app-layout>