Explorar o código

open reclamation in new tab

Alexander Musikhin hai 3 semanas
pai
achega
c923d4139f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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