Sindbad~EG File Manager

Current Path : /home/zada/public_html/resources/views/backend/marketing/flash_deals/
Upload File :
Current File : /home/zada/public_html/resources/views/backend/marketing/flash_deals/flash_deal_discount.blade.php

@if(count($product_ids) > 0)
<table class="table table-bordered aiz-table">
  <thead>
  	<tr>
  		<td width="50%">
          <span>{{translate('Product')}}</span>
  		</td>
      <td data-breakpoints="lg" width="20%">
          <span>{{translate('Base Price')}}</span>
  		</td>
  		<td data-breakpoints="lg" width="20%">
          <span>{{translate('Discount')}}</span>
  		</td>
      <td data-breakpoints="lg" width="10%">
          <span>{{translate('Discount Type')}}</span>
      </td>
  	</tr>
  </thead>
  <tbody>
      @foreach ($product_ids as $key => $id)
      	@php
      		$product = \App\Models\Product::findOrFail($id);
      	@endphp
          <tr>
            <td>
              <div class="from-group row">
                <div class="col-auto">
                  <img class="size-60px img-fit" src="{{ uploaded_asset($product->thumbnail_img)}}">
                </div>
                <div class="col">
                  <span>{{  $product->getTranslation('name')  }}</span>
                </div>
              </div>
            </td>
            <td>
                <span>{{ $product->unit_price }}</span>
            </td>
            <td>
                <input type="number" lang="en" name="discount_{{ $id }}" value="{{ $product->discount }}" min="0" step="1" class="form-control" required>
            </td>
            <td>
                <select class="form-control aiz-selectpicker" name="discount_type_{{ $id }}">
                  <option value="amount">{{ translate('Flat') }}</option>
                  <option value="percent">{{ translate('Percent') }}</option>
                </select>
            </td>
          </tr>
      @endforeach
  </tbody>
</table>
@endif

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists (>^ω^<)看过哭02teddd(>^ω^<)看过哭02teddd