![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/products/ |
@if(!$productAttributes->isEmpty()) <p class="alert alert-primary">You can only set 1 default combination</p> <ul class="list-unstyled"> <li> <table class="table table-striped table-hover table-checkable dataTable table-responsive table-responsive-md responsive" id="order_table"> <thead class="thead-dark"> <tr> <th scope="col" class="all">ID</th> <th scope="col" class="min-mobile-l">Quantity</th> <th scope="col" class="min-mobile-l">Price</th> <th scope="col" class="desktop">Sale Price</th> <th scope="col" class="desktop">Attributes</th> <th scope="col" class="min-tablet-l">Is default?</th> <th scope="col" class="min-mobile-l">Remove</th> </tr> </thead> <tbody> @foreach($productAttributes as $pa) <tr> <td class="dtr-control">{{ $pa->id }}</td> <td>{{ $pa->quantity }}</td> <td>{{ $pa->price }}</td> <td>{{ $pa->sale_price }}</td> <td> <ul class="list-unstyled"> @foreach($pa->attributesValues as $item) <li>{{ $item->attribute->name }} : {{ $item->value }}</li> @endforeach </ul> </td> <td> @if($pa->default == 1) <button type="button" id="{{ $pa->id }}" class="btn btn-success btn_update_default_attr"><i class="fa fa-check"></i></button> @else <button type="button" id="{{ $pa->id }}" class="btn btn-danger btn_update_default_attr"><i class="fa fa-remove"></i></button> @endif </td> <td> <div class="btn-group"> <a class="btn btn-dark" id="editAttrPrices" productId= "{{ $pa->id }}" href="{{ route('admin.product-attribute.edit',['id'=>$pa->id]) }}"><i class="fa fa-pencil"></i> Edit</a> <a onclick="return confirm('Are you sure?')" href="{{ route('admin.products.edit', [$product->id, 'combination' => 1, 'delete' => 1, 'pa' => $pa->id]) }}" class="btn btn-danger"><i class="fa fa-times"></i> Delete</a> </div> </td> </tr> @endforeach </tbody> </table> </li> </ul> @else <p class="alert alert-warning">No combination yet.</p> @endif <div id="editAttrPrices" class="modal"> <div class="modal-dialog"> <!-- Modal content --> <div class="modal-content"> <span class="close">×</span> <div class="modal-body"> <p>Some text in the Modal..</p> </div> </div> </div> </div>