Category : html

I have an object returned from controller to the blade using compact. In my blade file I am using this to print the values <div class="col-lg-4 col-md-4 col-xs-12 col-sm-6"> <!– This must regenerate to print next 4 entries–> <ul class="list_teachers"> @php $length=count((array)$facility_details); @endphp @foreach($facility_details as $key=>$value) @if(($key!=’id’)&&($key!=’college_id’)&&($key!=’updated_at’)&&($key!=’created_at’)&&($value!=0)) <li class="col-lg-3 col-md-3 col-sm-3"> <a> <figure><img src="{{asset(‘assets/img/’.$key.’.png’)}}" alt=""></figure> ..

Read more

I try to Send an Email with Laravel 8 using Markdown Mailable Class but I did get the correct view Markdown refers to the conversion of text-based mnemonic format into HTML format which can be rendered into the browser. // mail config file ‘markdown’ => [ ‘theme’ => ‘default’, ‘paths’ => [ resource_path(‘views/vendor/mail’), // resource_path(‘views/mail’), ..

Read more

I am trying to make a simple data filter in Laravel using jQuery AJAX. In my blade I am doing something like this. ***********collegelist.blade.php************ @foreach($results as $result) showing $result values @endforeach Ajax code $(‘.filter_type :checkbox’).on(‘change’,function() { if($(this).is(‘:checked’)){ var college_type=$(this).val(); alert(college_type); $.ajax({ url:’/collegeListing/public/collegeList/{college_type}/{city}’, type:’get’, data:{college_type:college_type,city:’All Cities’}, success(data){ return data; }, }); } }); And my controller ..

Read more

The filepaths are definitely correct. My web broswer displays a blank area with the correct height and tag that reads "first slide, seconds slide, third slide" etc… i’ve also tried defining the full filepath like this: C:.png <div id="carouselExampleFade" class="carousel slide carousel-fade" data-ride="carousel" style="height: 32rem;"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="{{ asset(‘viewscomponentsimages.png’) ..

Read more

this is the code of my ProductController.php function removeCart($id) { Cart::destroy($id); return redirect(‘cartlist’); } this is my route in web.php Route::get("removecart/{id}",[ProductController::class,’removeCart’])->name(‘remove’); this is my balde file code <a href="{{url(‘/removecart/{$item->cart_id}’)}}" class="btn btn-warning" >Remove from Cart</a> my remove from cart button is not working Sourc..

Read more

For some reason the JavaScript isn’t displaying. I’ve checked the inspect element sources and it does in fact load correctly, however it isn’t being applied. Any idea why? Thanks. <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="{{ asset(‘css/app.css’) }}"> <script src="{{ asset(‘js/app.js’) }}"></script> <title>Hello World</title> </head> app.js: require(‘./bootstrap’); I’m specifically ..

Read more

I have a problem with my design template, horizontal scroll bar is displayed <!doctype html> <html lang="en"> <head> <!– Required meta tags –> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!– Bootstrap CSS –> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> <title>Hello, world!</title> </head> <body> @yield(‘content’) <!– Optional JavaScript; choose one of the two! –> <!– Option 1: ..

Read more

I want to show different labels on change event. <form method="POST" action="{{ route(‘storeCompany’) }}"> @csrf <select class="form-control" name="category_id"> @foreach( $categories as $c ) <option value="{{ $c->id }}" @if(old(‘category_id’) == $c->id) selected @endif>{{ $c->name }}</option> @endforeach </select> <!–<label>{{ __(‘URL 1’) }}</label> <input type="text" name="url" value="{{ old(‘url’) }}" class="form-control">–> <!–<label>{{ __(‘URL 2’) }}</label> <input type="text" name="url" value="{{ ..

Read more

<div class="card-body"> <form action="" > <div class="row"> <div class="col-5"> <label for="">From Date</label> <input type="date" class="form-control" name="from" id="from" value="{{old(‘from’)}}" required> </div> <div class="col-5"> <label for="">To Date</label> <input type="date" class="form-control" name="to" id="to" value="{{old(‘to’)}}" required> </div> <div class="col2 pt-4 mt-2"> <input type="submit" class="btn btn-success" value="search"> </div> </div> </form> </div> I want my from data after submission. i am ..

Read more

I try to show a stream response that have audio/wav output from api using Guzzle. this is what I did $data = array( ‘input_text’ => $request->input_text, ); $url = "http://abc.or/tospeech"; $client = new GuzzleHttpClient(); $response = $client->post($url, [ ‘headers’ => [‘Content-Type’ => ‘application/json’, ‘Accept’ => ‘application/json’], ‘body’ => json_encode($data) ]); $result = $response->getBody()->getContents(); return redirect(‘/home’)->withInput()->with(‘result’, ..

Read more

<form method="POST" action="{{ route(‘storeCompany’) }}"> <label>{{ __(‘Website URL’) }}</label> <input type="text" name="url" value="{{ old(‘url’) }}" class="form-control" required="required"> <label>{{ __(‘Site Title’) }}</label> <input type="text" name="name" value="{{ old(‘name’) }}" class="form-control" required="required"> <input type="submit" name="sbNewReviewItem" class="btn btn-block btn-primary" value="{{ __(‘Submit’) }}"> </form> So This is my form and I want the Site title field to be auto-completed (It ..

Read more

<form method="POST" action="{{ route(‘storeCompany’) }}"> <label>{{ __(‘Website URL’) }}</label> <input type="text" name="url" value="{{ old(‘url’) }}" class="form-control" required="required"> <label>{{ __(‘Site Title’) }}</label> <input type="text" name="name" value="{{ old(‘name’) }}" class="form-control" required="required"> <input type="submit" name="sbNewReviewItem" class="btn btn-block btn-primary" value="{{ __(‘Submit’) }}"> </form> So This is my form and I want the Site title field to be auto-completed (It ..

Read more