From 19d4ed42a97eb558dbb3b9ffe7eddb501e1aa085 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 16 Sep 2025 18:04:20 +0200 Subject: [PATCH] wip #7718 --- app/Http/Controllers/Controller.php | 2 +- .../FileSearch/FileInstantSearch.vue | 6 ++-- resources/views/archives/index.blade.php | 30 ++----------------- 3 files changed, 7 insertions(+), 31 deletions(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index c8bf54b..969b4a9 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -81,6 +81,6 @@ class Controller extends BaseController $refs = array_map(function($hits) { return $hits['document']['reference']; }, $typeSenseResults['hits']); $pdfFile = new PdfFile(); - return $pdfFile->whereIn('slug', $refs)->get()->toArray(); + return $pdfFile->whereIn('slug', $refs)->orderBy('created_at', 'desc')->get()->toArray(); } } diff --git a/resources/js/components/FileSearch/FileInstantSearch.vue b/resources/js/components/FileSearch/FileInstantSearch.vue index 64f2768..498538f 100644 --- a/resources/js/components/FileSearch/FileInstantSearch.vue +++ b/resources/js/components/FileSearch/FileInstantSearch.vue @@ -16,15 +16,15 @@
diff --git a/resources/views/archives/index.blade.php b/resources/views/archives/index.blade.php index 6d44166..4f8bcd8 100644 --- a/resources/views/archives/index.blade.php +++ b/resources/views/archives/index.blade.php @@ -1,36 +1,12 @@ @extends('layouts.v2.app') -@section('title') -
-
-

Nos archives

-
-
- Lancer la recherche -
- -
-
-
-@endsection @section('main') - {{--
-
- @foreach($all_pdf as $key => $pdf) -
- - -
- @endforeach -
-
--}} - + @endsection -- 2.39.5