You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							1.3 KiB
						
					
					
				@if(count($combinations[0]) > 0)
 | 
						|
    <table class="table table-bordered">
 | 
						|
        <thead>
 | 
						|
        <tr>
 | 
						|
            <td class="text-center">
 | 
						|
                <label for="" class="control-label">{{ translate('Variant') }}</label>
 | 
						|
            </td>
 | 
						|
            <td class="text-center">
 | 
						|
                <label for="" class="control-label">{{ translate('Variant Price') }}</label>
 | 
						|
            </td>
 | 
						|
        </tr>
 | 
						|
        </thead>
 | 
						|
        <tbody>
 | 
						|
 | 
						|
        @foreach ($combinations as $key => $combination)
 | 
						|
            @php
 | 
						|
                $str = '';
 | 
						|
                foreach ($combination as $key => $item){
 | 
						|
                    if($key > 0 ){
 | 
						|
                        $str .= '-'.str_replace(' ', '', $item);
 | 
						|
                    }
 | 
						|
                    else{
 | 
						|
                        $str .= str_replace(' ', '', $item);
 | 
						|
                    }
 | 
						|
                }
 | 
						|
            @endphp
 | 
						|
            @if(strlen($str) > 0)
 | 
						|
                <tr>
 | 
						|
                    <td>
 | 
						|
                        <label for="" class="control-label">{{ $str }}</label>
 | 
						|
                    </td>
 | 
						|
                    <td>
 | 
						|
                        <input type="number" name="price_{{ $str }}" value="{{ $price }}" min="0" step="0.01"
 | 
						|
                               class="form-control" required>
 | 
						|
                    </td>
 | 
						|
                </tr>
 | 
						|
            @endif
 | 
						|
        @endforeach
 | 
						|
        </tbody>
 | 
						|
    </table>
 | 
						|
@endif
 | 
						|
 |