Ver código fonte

receipt - tolto default "Sede legale"

ferrari 3 semanas atrás
pai
commit
ad939fe473
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      resources/views/receipt.blade.php

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

@@ -189,7 +189,11 @@
                     ]);
                     $location = implode(' ', $locationParts);
                 @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
                 {{date("d/m/Y", strtotime($display_date))}}
             @endif