Forráskód Böngészése

open reclamation in new tab

Alexander Musikhin 3 hete
szülő
commit
c923d4139f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      resources/views/partials/table.blade.php

+ 1 - 1
resources/views/partials/table.blade.php

@@ -84,7 +84,7 @@
                             && !str_contains($headerName, 'image')
                             && !str_contains($headerName, 'order_status_name')
                             && !($id === 'reclamations' && $headerName === 'status_name'))
-                            onclick="location.href='{{ route($routeName, $string->id) }}'"
+                            onclick="@if($id === 'reclamations')window.open('{{ route($routeName, $string->id) }}','_blank');@else location.href='{{ route($routeName, $string->id) }}';@endif"
                         @endif>
                         @if(str_contains($headerName, '-'))
                             @php