|
47 | 47 |
|
48 | 48 | <tr>
|
49 | 49 | <td class="cart_product">
|
50 |
| - <a href=""><img src="http://localhost/easyshop/upload/images/{{$cartItem->options->img}}" alt="" width="200px"></a> |
| 50 | + <a href="{{url('/product_details')}}/{{$cartItem->id}}"><img src="{{$cartItem->options->img}}" alt="" width="200px"></a> |
51 | 51 | </td>
|
52 | 52 | <td class="cart_description">
|
53 |
| - <h4><a href="">{{$cartItem->name}}</a></h4> |
54 |
| - <p>Web ID: {{$cartItem->id}}</p> |
| 53 | + <h4><a href="{{url('/product_details')}}/{{$cartItem->id}}" style="color:blue">{{$cartItem->name}}</a></h4> |
| 54 | + <p>Product ID: {{$cartItem->id}}</p> |
55 | 55 | </td>
|
56 | 56 | <td class="cart_price">
|
57 | 57 | <p>${{$cartItem->price}}</p>
|
58 | 58 | </td>
|
59 | 59 | <td class="cart_quantity">
|
60 | 60 | <div class="cart_quantity_button">
|
61 | 61 | {!! Form::open(['url' => ['cart/update',$cartItem->rowId], 'method'=>'put']) !!}
|
62 |
| - <input type="button" value="-" id="moins{{$cartItem->id}}" onclick="minus{{$cartItem->id}}()" class="cart_quantity_down"> |
63 |
| - <input type="text" size="3" value="{{$cartItem->qty}}" name="qty" id="count{{$cartItem->id}}" autocomplete="off" style="text-align:center" > |
64 |
| - <input type="button" value="+" id="plus{{$cartItem->id}}" onclick="plus{{$cartItem->id}}()" class="cart_quantity_up"> |
65 |
| - |
66 |
| - |
67 |
| - <br> |
68 |
| - <input type="submit" value="Update" class="btn btn-primary" style="margin:5px"> |
| 62 | + <?php /* |
| 63 | + * <input type="button" value="-" id="moins{{$cartItem->id}}" onclick="minus{{$cartItem->id}}()" class="cart_quantity_down"> |
| 64 | + */?> |
| 65 | + <input type="number" size="2" value="{{$cartItem->qty}}" name="qty" id="count{{$cartItem->id}}" |
| 66 | + autocomplete="off" style="text-align:center; max-width:50px; " MIN="1" MAX="30"> |
| 67 | + <?php /* |
| 68 | + * <input type="button" value="+" id="plus{{$cartItem->id}}" onclick="plus{{$cartItem->id}}()" class="cart_quantity_up"> |
| 69 | + */?> |
| 70 | + |
| 71 | + <button type="submit" class="btn btn-success btn-sm" title="Update Count"> |
| 72 | + <span class="glyphicon glyphicon-edit"></span></button> |
| 73 | + |
| 74 | + |
69 | 75 | {!! Form::close() !!}
|
70 | 76 | </div>
|
71 | 77 | </td>
|
72 | 78 | <td class="cart_total">
|
73 | 79 | <p class="cart_total_price">${{$cartItem->subtotal}}</p>
|
74 | 80 | </td>
|
75 | 81 | <td class="cart_delete">
|
76 |
| - <a class="cart_quantity_delete" href="{{url('/cart/remove')}}/{{$cartItem->rowId}}"><i class="fa fa-times"></i></a> |
| 82 | + <a class="cart_quantity_delete" style="background-color:red" |
| 83 | + href="{{url('/cart/remove')}}/{{$cartItem->rowId}}"><i class="fa fa-times"></i></a> |
77 | 84 | </td>
|
78 | 85 | </tr>
|
79 | 86 |
|
|
0 commit comments