Category : css

I’m using the Livewire rating system in my Laravel e-commerce application. Right now any user can rate and comment on any product. I want only the buyers can rate and comment. ProductRatings.php class ProductRatings extends Component { public $rating; public $comment; public $currentId; public $product; public $hideForm; protected $rules = [ ‘rating’ => [‘required’, ‘in:1,2,3,4,5’], ..

Read more

I am in the process of integrating Metronic 8 with Laravel 8. I have followed the guide from Metronic in their documentation but when I run npm run dev it webmix gets to 98% and then fails with the following output: ERROR in ./resources/src/sass/style.scss Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): ..

Read more

I want to display average product ratings in star. The values are displaying good but I want to show half star if the value is in float. My blade view: <div class="rating"> @for($i=0;$i<5;$i++) @if($product->ratings->avg(‘rating’) > $i) <span class="icon-ratings"><i class="icon-rating icon-rating-x"></i></span> @else <span class="icon-ratings"><i class="icon-rating icon-rating-o"></i></span> @endif @endfor &nbsp; <div style="float:left">{{$product->ratings->avg(‘rating’)}}</div> </div> The average value is ..

Read more

The rating module is working well, number of ratings are also showing but I want to display total ratings in stars but I don’t know how to write in blade view. Livewire/ProductRating.php public $rating; public $comment; public $currentId; public $product; public $hideForm; protected $rules = [ ‘rating’ => [‘required’, ‘in:1,2,3,4,5’], ‘comment’ => ‘required’, ]; public ..

Read more

I’m trying to style several checkboxes with CSS, but only one is working. What is wrong with my code? I’d like to have unique ids for the checkboxes, but the CSS here doesn’t seem to allow it. I have a multi-checkbox, When I click on the third checkbox, The first checkbox is activated. Or checked. ..

Read more

I use barryvdh/laravel-snappy to generate pdf and need to create a signature area in my pdf doc. There must be two signature fields because it’s a contract pdf but when I use css grid or flex they place one under the other. How to place them side by side? <div class="flex-container" style=" display:flex; padding: 10px;"> ..

Read more

I have a form to register a student. The form submits when i use the following code <div class="text-xs-right"> <i class="ti-save-alt"></i> <input type="submit" class="btn btn-info btn-rounded mb-5" value="Register"> </div> But it just refreshes if i use the Button type Submit (below code) <button type="submit" value="Submit" class="btn btn-rounded btn-primary btn-outline"> <i class="ti-save-alt"></i> Register </button> Can someone ..

Read more

I am using datatable in Laravel Project. I use it on many pages. But on two pages I need to show almost 20 columns. and it automatically adds a plus sign to show more details. I have filters on table and following is my JavaScript. $(document).ready(function() { initDatatable(‘/deals/deals_table’, ‘deals_table’); }); function quickFilter(elementId) { var fnServerParams ..

Read more