File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed 
resources/views/default/includes Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 66     <p  class =" pb-1 text-xs" {{  $address -> name   } }p >
77 @endif 
88
9-  @if  ($address -> street 
9+  @if  (is_array ($address -> street )
10+      @foreach  ($address -> street  as  $line 
11+          <p  class =" pb-1 text-xs" {{  $line   } }p >
12+      @endforeach 
13+  @elseif ($address -> street 
1014     <p  class =" pb-1 text-xs" {{  $address -> street   } }p >
1115 @endif 
1216
Original file line number Diff line number Diff line change 1212class  Address implements  Arrayable
1313{
1414    /** 
15+      * @param  null|string|string[]  $street 
1516     * @param  array<array-key, null|int|float|string>  $fields 
1617     */ 
1718    public  function  __construct (
1819        public  ?string  $ companynull ,
1920        public  ?string  $ namenull ,
20-         public  ? string  $ streetnull ,
21+         public  null | string | array  $ streetnull ,
2122        public  ?string  $ statenull ,
2223        public  ?string  $ postal_codenull ,
2324        public  ?string  $ citynull ,
@@ -56,7 +57,7 @@ public static function fromArray(array $values): self
5657     * @return array{ 
5758     *    company: ?string, 
5859     *    name: ?string, 
59-      *    street: ? string, 
60+      *    street: null| string|string[] , 
6061     *    state: ?string, 
6162     *    postal_code: ?string, 
6263     *    city: ?string, 
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static function fromArray(array $values): self
5959     *    address: null|array{ 
6060     *       company: ?string, 
6161     *       name: ?string, 
62-      *       street: ? string, 
62+      *       street: null| string|string[] , 
6363     *       state: ?string, 
6464     *       postal_code: ?string, 
6565     *       city: ?string, 
@@ -69,7 +69,7 @@ public static function fromArray(array $values): self
6969     *    shipping_address: null|array{ 
7070     *       company: ?string, 
7171     *       name: ?string, 
72-      *       street: ? string, 
72+      *       street: null| string|string[] , 
7373     *       state: ?string, 
7474     *       postal_code: ?string, 
7575     *       city: ?string, 
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public static function fromArray(array $values): self
5656     *    address: null|array{ 
5757     *       company: ?string, 
5858     *       name: ?string, 
59-      *       street: ? string, 
59+      *       street: null| string|string[] , 
6060     *       state: ?string, 
6161     *       postal_code: ?string, 
6262     *       city: ?string, 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments