Explorar o código

receipt - tolto default "Sede legale"

ferrari hai 3 semanas
pai
achega
ad939fe473
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      resources/views/receipt.blade.php

+ 5 - 1
resources/views/receipt.blade.php

@@ -189,7 +189,11 @@
                     ]);
                     ]);
                     $location = implode(' ', $locationParts);
                     $location = implode(' ', $locationParts);
                 @endphp
                 @endphp
-                {{ $location ?: 'Sede legale' }} li {{date("d/m/Y", strtotime($display_date))}}
+                @if ($location)
+                    {{ $location }} li {{date("d/m/Y", strtotime($display_date))}}
+                @else
+                    {{date("d/m/Y", strtotime($display_date))}}
+                @endif
             @else
             @else
                 {{date("d/m/Y", strtotime($display_date))}}
                 {{date("d/m/Y", strtotime($display_date))}}
             @endif
             @endif