Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/old.fdshops.com.ng/resources/views/product/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/old.fdshops.com.ng/resources/views/product/partials/combo_product_entry_row.blade.php
@php
	$quantity = isset($quantity) ? $quantity: 1;
	$multiplier = isset($multiplier) ? $multiplier: 1;
	$unit_id = isset($unit_id) ? $unit_id: null;
@endphp

@foreach($variations as $variation)
	<tr>
		<td class="text-center">
			@if($product->type == 'variable')
				{{ $product->name }} ({{ $variation->name }}) - {{ $variation->sub_sku }}
				@else
					{{ $product->name }} - {{ $variation->sub_sku }}
				@endif

				<input type="hidden" name="composition_variation_id[]" value="{{ $variation->id }}">
		</td>
		<td class="text-center">
			{!! Form::text('quantity[]', @num_format($quantity), ['class' => 'form-control col-sm-12 input-sm quantity input_number mousetrap', 'required', 'style '=> "width: 77px"]); !!}

			@if(!empty($sub_units))
                <br>
                <select name="unit[]" 
                	class="form-control input-sm sub_unit">
                    @foreach($sub_units as $key => $value)
                        <option value="{{$key}}" 
                       data-multiplier="{{$value['multiplier']}}"
                       @if($unit_id == $key) selected @endif
                        >
                            {{$value['name']}}
                        </option>
                    @endforeach
                </select>
            @else 
            	<input type="hidden" name="unit[]" value="{{$product->unit->id}}">
                {{ $product->unit->short_name }}
            @endif

		</td>
		<td class="text-center">
			<span class="purchase_price display_currency purchase_price_text" data-currency_symbol="true">
				{{ $variation->default_purchase_price }}
			</span>
			<input type="hidden" class="purchase_price" value="{{ $variation->default_purchase_price }}">
		</td>
		<td class="text-center">
			<span class="item_level_purchase_price display_currency" data-currency_symbol="true">
				{{$variation->default_purchase_price * $quantity * $multiplier}}
			</span>
			<input type="hidden" class="item_level_purchase_price" value="{{$variation->default_purchase_price * $quantity * $multiplier}}">
		</td>
		<td class="text-center">
			<span>
				<i class="fa fa-times remove_combo_product_entry_row text-danger" title="Remove" style="cursor:pointer;"></i>
			</span>
		</td>
	</tr>
@endforeach

Spamworldpro Mini