Category : twitter-bootstrap

Some of my pages is not load the css of the layout files. Both my files has the same codes as shown below but only 1 page works. @extends(‘layout’) @section(‘content’) … @endsection this is my layout codes: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>System</title> </head> <body class="hold-transition sidebar-mini layout-fixed"> … ..

Read more

I installed bootstrap in Laravel 8 using the ff commands: npm install –save bootstrap jquery @popperjs/core cross-env Inside app/resources/js/bootstrap.js included the ff stabs: try { window.Popper = require(‘popper.js’).default; window.$ = window.jQuery = require(‘jquery’); require(‘bootstrap’); } catch (e) {} Then inside app/resources/scss/app.scss I included bootstrap: // bootstrap @import "~bootstrap/scss/bootstrap"; Finally, on my webpack.mix.js: mix.js("resources/js/app.js", "public/js").sass( "resources/scss/app.scss", ..

Read more

I have a form goes like this: <form method="" action=""> <label for="discountValue">Discount Value</label> <input type="text" class="form-control" id="discountValue" name="discount_value[]"> <label for="timeSpanStart">Start Date</label> <input type="text" class="form-control datepicker" id="timeSpanEnds" name="time_span_starts[]"> <label for="timeSpanEnds">End Date</label> <input type="text" class="form-control datepicker" id="timeSpanEnds" name="time_span_ends[]"> <label for="labelDiscount">Discount Label</label> <input type="text" class="form-control" id="labelDiscount" name="discount_label[]"> <button class="btn btn-success" type="submit">Submit</button> </form> As you can see I have ..

Read more

Hello, The following code segment is intended to ask the user if they want to be a guest author at our blogging site, however the radio toggle always returns a zero value. The MYSQL column is type tinyint(1). <!– Author? –> <div class="author" style="text-align: center; margin-bottom: 1rem;"> <h3><strong>Are you interested in earning money blogging for ..

Read more

I’m trying integrate a payment method with my e-commerce application using laravel. I’m also checking it with postman. Everything was performing well except the last function, which brings this error. { "requestId":"811-10899983-1" "errorCode": "400.002.02", "errorMessage": "Bad Request – Invalid BusinessShortCode" } Here my code for the controller & routes public function lipaNaMpesaPassword(){ $timestamp = Carbon::rawParse(‘now’)->format(‘YmdHms’); ..

Read more

i am using TailWind with blade template in laravel, how can i make those card like in the bootstrap, i mean every three items in the one column : @section(‘content’) <div class="flex justify-center"> <div class="w-8/12 bg-white p-6 rounded-lg mt-10 "> @forelse($products as $product) <!– Box –> <div class="md:flex md:justify-center md:space-x-8 md:px-14"> <!– box-1 –> <div ..

Read more

I am a newbie of both Laravel (PHP framework) and Bootstrap (CSS framework), but I think it was fairly easy to get some validation working and showing green input fields with green icon if success and red error messages and red input fields and red icon if validation failed. However, I have found two kind ..

Read more

I’m getting errors when trying to put variables in my Laravel code. I know you’re supposed to define the variables in the routes,but I’m getting nowhere. I’m trying to build a cms website. <!DOCTYPE html> <html> <head> <title></title> </head> <body> <ul> <div class="row align-items-center mr-5"> @foreach($abouts as $about) <div class="col-lg-6 pl-lg-5 "> <h3 class=" font-weight-bold">About ..

Read more

how can I correct add show and active class to bootstrap 5 pills?? Now I try to do something like this: <div class="nav-head"> <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> @foreach($blocks as $item) @foreach ($item->offers->take(4) as $offer) <li class="nav-item" role="presentation"> <a class="nav-link {{ $offer->first ? ‘active’ : ”}} {{ $offer->first ? ‘show’ : ”}}" data-bs-toggle="tab" href="#tabs-{{ ..

Read more

I have a div like this: And for printing data for this div, I coded this: <div class="box-magazine"> @foreach($magazines as $magazine) <div class="box-right-magazine"> <div class="box-title"> <a href="magazines/magazine/{{ $magazine->id }}"></a> <img src="{{ (! is_null($fields[‘spf_magazine_home_nano_image’])) ? IlluminateSupportFacadesStorage::url($fields[‘spf_magazine_home_nano_image’][‘600x’]) : ‘../../../images/festival_logo.png’ }}" class="w-100 card-img-top"> <div class="box-title-text"> Title </div> </div> <div class="box-content"> <div> Date </div> </div> </div> @endforeach <div class="box-left-magazine"> ..

Read more