#### Category : html

I have a form that contains gender input in the form of a radio button, but when I try to submit with an empty value, the radio button element doesn’t get into the Request object which in the example below the input name is jenis_kelamin. But if jenis_kelamin has a value, then the jenis_kelamin element ..

I am using a html form to get user data using laravel php. On form submit I am executing an api which in Web.php is defined as Route::post(‘/register_user’, ‘[email protected]’); which executes, public function registerUser(Request $request){$apiResult = $this->executeApi($request->input(‘mobile_no’)); if($apiResult === "Success"){ return view(‘further_view’); }else{ toastr()->error(‘Registration Failed. Please check mobile number.’); return back(); } } html .. Read more i want to create a website for buy and sell, so i display image and product images see image1, i copy ecommerce site code with scss file i execute npm run dev, but pity it shows me image2. hi, i want to create a website for buy and sell, so i display image and product .. Read more Currently Working on building out a news api behind a dashboard. I have just recently started getting the error Undefined variable: sourceId (View: C:Laravel8Authresourcesviewsdashboard.blade.php). Ive gone everywhere that has source Id and I cant see to figure out what it could be. Here are some of the codes necessary, im using Laravel 8.x with JetStream .. Read more I have a page with 3tabs. I need to make the page to redirect to the same tab that came from before reload.I quess each tab shuold add a string to url for example #menu1 #menu2 but it doesnt I’ll share my codes. I am new in laravel and dont know how to handle it. .. Read more I am using laravel-7. I am making a job site,where applicant can upload resume (pdf) and company can view the pdf from laravel view page. I uploaded the file successful. But I am unable to view the pdf in view page. code: <td> {{$applicant_details->resume }} <iframe src="{{asset(‘resume/’.$applicant_details->resume) }}" width=”100%” height=”100%”> This browser does not support .. Read more I am trying to validate user registration form using Laravel Validator::make. The code works, including showing the error messages in the respective fields. But my problems are :- 1) No matter what I type in the email field, it always produces an error. So, it does not redirects me to the next page, even if .. Read more I am building a system so the user can request for multiple things, and I want to be able to visualize the details about each request (individually) made in the system. The current method gives me everything at once, and not separated. Here is the part of the code The controller public function verDetalhesKeys($id) { ..

When i try to put the old value in textArea and she give me a space like in the screenShot. <textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3"> {{$admission->commentaire}} </textarea> How can i enable or remove the space ? enter image description here Sourc.. Read more I have to put images in my PDF, however the images cannot display, instead it display like image not found or type unknown There are two images that have to display: from public directory /default.png from Voyager settings Voyager::image(setting(‘admitcard.signature’)) Below are my code:$pdf = PDF::setOptions([‘isHtml5ParserEnabled’ => true, ‘isRemoteEnabled’ => true])->loadView(‘pdf’, compact(‘data’))->stream(); return $pdf->download($data->name.’-admit-card.pdf’); If ..

*VendorController*- *this is the datatable function* public function datatable(){ $data = Vendor::all(); try { return DataTables::of($data)->addColumn(‘action’, function ($data) {$url_edit = url(‘master/vendor/’.$data->id.’/edit’);$url = url(‘master/vendor/’.$data->id.’/’);$view = "<a class=’btn btn-action btn-primary’ href=’$url’ title=’View’><i class=’nav-icon fas fa-eye’></i></a>";$edit = "<a class=’btn btn-action btn-warning’ href=’$url_edit’ title=’View’><i class=’nav-icon fas fa-edit’></i></a>";$delete = "<button data-url=’" . $url . "’ .. Read more I need some small help real quick, its about my store method in my [email protected] Basically I have a form createProduct.blade.php, that allows the user to add a product, name, image, description and a link. The [email protected] then picks up the form input data and saves it inside the database. Now my problem is the .. Read more I am stuck trying to store an image of a product in the database. My database is currently just storing the name of the image, like chicken.jpeg. Not really a chicken by the way hahaha. So the current output is the filename of the image is stored in the database. However the desired result should .. Read more i have an error.. it says: Undefined variable: posts (View: C:xampphtdocsdinsospermasdesbansusresourcesviewsadminpostsindex.blade.php) it works in home.blade.php like this: @foreach ($posts as $post) <div class="card mb-4"> <img class="card-img-top" src="{‌{filter_var($post->post_image, FILTER_VALIDATE_URL) ? $post->post_image : ‘/storage/’ .$post->post_image}}" alt="Card image cap">         <div class="card-body">         <h2 class="card-title">{‌{$post->title}}</h2> <p class="card-text">{‌{Str::limit($post->body, ’50’, ‘….’)}}</p>         <a href="{‌{route(‘post’, $post->id)}}" class="btn btn-primary">Read More &rarr;</a> </div> <div class="card-footer text-muted"> Posted on {‌{$post->created_at->diffForHumans()}} by         <a href="#">{‌{$post->name}}</a> </div> </div> @endforeach but didn’t work in admin/posts/index.blade.php like this: @foreach($posts as $post) <tr> <td>{‌{$post->id}}</td>                           <td>{‌{$post->title}}</td> <td> <img height="40px" src="{‌{filter_var($post->post_image, FILTER_VALIDATE_URL) ? $post->post_image : ‘/storage/’ .$post->post_image}}">                           </td>                           <td>{‌{$post->created_at->diffForHumans()}}</td> <td>{‌{$post->updated_at->diffForHumans()}}</td>                       </tr>                       @endforeach this is PostController.php: class PostController extends Controller { ..

My top navigation bar is on the left side of the screen, how do I move it to the right? The current output is the top navigation bar appearing on the left side of the screen. The wanted output is the top navigation appearing on the right side of the screen. I have tried using ..

I am using bootstrap 4 I’m using this syntax in my code: <a class="btn popovers" href="#" data-toggle="popover" data-placement="top" data-content="test content <a href=” title=’test add link’>link on content</a>" data-original-title="test title"> <div class="ui-bullet"></div> <strong>Booth 1</strong> </a> but the <a> tag still showed like this: is there anything wrong with my code? Sourc..

I am having a problem with accessing images I tried accessing image at public/storage/images with database seeder, and it works well like this: but if i try accessing image using "create post from admin", it didn’t work. like this: this my code: PostController.php public function store(){ $inputs = request()->validate([ ‘title’=>’required|min:8|max:255’, ‘post_image’=>’file’, //mime: jpeg, png ‘body’=>’required’ .. Read more I have 1 table named status with 3 conditions, namely completed, postponed, and canceled. I want to change these 3 conditions into a number, for example finish = 1, postponed and canceled = 0. What I ask is how do I convert the data into a number in laravel (php) Sourc.. Read more Please for help I have code like this: <label>place</label> <select class="form-control" name="provice" id="provice"> <option value="0">test</option> @foreach ($provincees as $key =>$value) <option value="{{ $value->id }}">{{$value->name }}</option> @endforeach </select> I want to get the data name and insert to database, province name searched by using the id found in the select option This is to ..

i wanted to make a simple dropdown and it will show the value of the clicked dropdown item, <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick=> Pilih Rumus </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" id="tabung" name="tabung" href="#" value="tabung">Volume Tabung</a> <a class="dropdown-item" id="bola" name="bola" href="#" value="bola">Volume Bola </a> <a class="dropdown-item" id="kerucut" name="kerucut" ..

i want to use a function (@lang) inside another function (@sortablelink). @lang: changed localisation depending on previous user input @sortablelink: kysliks sortable columns (https://github.com/Kyslik/column-sortable) Like this: @foreach($COLUMNS_TASK as$column => $val) <div class="th"> <a href=""><p class="justify-content-center text-center">@sortablelink($val, @lang(‘lang.’.\$val))</p></a> </div> @endforeach When i run this code, i am getting this error: Error Call to undefined function ..

I am trying to create a dynamic navigation bar on a dynamic page. The desired output would be a dynamic navigation bar on the dynamic page, however at the moment, we only have an output of a dynamic page without a dynamic navigation bar. I haven’t made a dynamic navigation bar before so the first ..