Category : bootstrap-4

i’m new in the Laravel world, i have a question how i solve the problem ? I as Laravel 8 and Bootstrap 4 , I want to as Bootstrap Tab to call the Category ‘type’ My Database . my code is web.php : Route::get(‘products’, [ProductsController::class, ‘index’])->name("allProducts"); 2-ProductsController.php public function index(){ $products = Product::paginate(8); return view("allproducts", ..

Read more

I am using an AdminLte template, which I use as a layout. In the part where I am going to put the content it is like this: <div class="content-wrapper"> <section class="content"> @yield(‘content’) </section> <!– /.content –> </div> In the view where I have the content to display I have: @extends(‘layouts.app’) @section(‘content’) <div> <img class="mx-auto my-auto ..

Read more

I’ve got problem with self-created sidebar in admin panel. It works fine on desktop, but I want that in mobile it should change position to top. At this moment it looks like this: LINK <div class="col-3" id="sticky-sidebar"> <div class="sticky-top"> <div class="card-body" align="center"> <h4>Admin Panel</h4> <div class="nav flex-column" align="center"> <div class="sidebar-menu-header"> <h5>Site</h5> </div> <button class="btn btn-outline-dark ..

Read more

I am trying to create a table which is scrollable within mobile view. Blade Below is the blade view which contains the table with the data which works fine within desktop view <div class="row"> <div class="col"> <div class="table-responsive"> <div class="table"> <div class="row table-head d-none d-md-flex"> <div class="col">Name</div> <div class="col">Email Address</div> <div class="col">Member Status</div> </div> @foreach($user->linkedUsers ..

Read more

this my view code here i try to do form with validate and div with type of errors: @if(count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <form action="add" method="POST"> {{ csrf_field() }} <!–Securite–> Product name <input type="text" value="{{ Request::old(‘name’) }}" class="form-control {{ $errors->has(‘name’) ? ‘is-invalid’ ..

Read more

I need to create a data collection, which will be recording as many times as the foreach runs, what is happening to me is that I only record the data from the last time the foreach runs. how can I solve? foreach($proposedphasesizes as $proposedphasesize) { $customizations = $proposedphasesize->customizations()->get(); $counter = $proposedphasesize->customizations()->count(); foreach($customizations as $customization) { ..

Read more

I have created a custom.scss file next to the scss file locatce within the bootstrap node module on my laravel server, the contents of the file are /* custom.scss */ /* import the necessary Bootstrap files */ @import "~bootstrap/scss/functions"; @import "~bootstrap/scss/_variables"; //@import "~bootstrap/scss/mixins/_breakpoints"; /* make changes to the !default Bootstrap variables */ $grid-breakpoints: ( xs: ..

Read more

I’m new in laravel and bootstrap ,i need to get the selected value of a dropdown button of bootstrap and send this value to my database Below the code of dropdown list button : <div class="dropdown col-md-6" aria-labelledby="dropdownMenu2"> <button class="btn btn-secondary dropdown-toggle" name="qty" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Quantity % </button> <div class="dropdown-menu" aria-labelledby="dropdownMenu2"> <button ..

Read more

I’m looking for a solution on my problem. I’m using bootstrap4 on laravel project. I have a modal that has a button which close it self and open a new modal. This is the code: $("#newAddressBtn").on(‘click’, function () { $(‘#modalAddressees’).modal(‘hide’) $(‘#modalAddressees’).on(‘hidden.bs.modal’, function () { // Load up a new modal… $(‘#modalNewAddress’).modal(‘show’); }) }); Inside this ..

Read more

I’m trying to display dynamic data in bootstrap tabs. For that I want to add active class to the first item. How can I do that?? My blade code <div id="rootwizard"> <ul class="nav nav-tabs wizard" role="tablist"> @foreach( $places as $place) <li class=" active" style=""><a href="#{{$place->id}}" role="tab" data-toggle="tab">{{$place->name}}</a></li> @endforeach </ul> <div class="tab-content"> @foreach($places as $place) <div ..

Read more