Category : bootstrap-modal

I have multiple markers on the map and click on every marker displays infowindow with some specific data for that marker. Additionally there would be an anchor tag to open a modal pop-up in which I would place image for that marker. My controller: public function welcomePage() { $problems = Problem::with(‘problemImages’)->get(); return view(‘welcomePage’) ->with(‘problems’, $problems) ..

Read more

This is my laravel blade page content of <!– Main Container –> <main id="main-container"> <!– Page Content –> <div class="content" id="app"> <!– Lock Forms –> <!– <h2 class="content-heading">Add Accessory</h2> –> <!– Register Forms –> <div class="row"> <div class="col-md-12"> <!– Bootstrap Register –> <div class="block block-themed"> <div class="block-header bg-gd-dusk"> <h3 class="block-title">Add Accessory</h3> </div> <div class="block-content"> @include(‘errors.error’) ..

Read more

I am a beginner of laravel. I want to edit a record which contains image, but it just show the input type for file same as insert records, instead of displaying the image. I have no ideas how to make it. Any comments are appreciated. Thanks. Modal <div class="modal-body"> <form method="POST" id="memberCardForm" name="memberCardForm" class="form-horizontal" enctype="multipart/form-data"> ..

Read more

need´s connect and post the CSV data in Database, I tried all the ways included and the last attempt reported that "mysqli_connect(): (HY000/1045): Access denied for user…." does anyone have a solution? My Php enter code here <?php if (isset($_POST[‘Submit’])) { ini_set(‘display_errors’, 1); error_reporting(E_ALL); $db_host = ‘xxxx’; $db_user = ‘xxxx’; $db_pass = ‘[email protected]’; $database = ..

Read more

I am facing an issue where a my ID is not being passed to by Bootstrap modal Table HTML Code <thead class="text-primary"> <th class="text-center">Date</th> <th class="text-center">Member</th> <th class="text-center">Membership Number</th> <th class="text-center">D.O.B</th> <th class="text-center">Voucher</th> <th class="text-center">Type</th> <th class="text-center">Status</th> <th class="text-center">Banking Reference</th> <th width="20%"></th> </thead> <tbody> @foreach($vouchers as $v) <tr> <td class="text-center">{{date(‘j/n/Y’, strtotime($v->created_at))}}</td> <td class="text-center">{{$v->member->first_name}} {{$v->member->last_name}}</td> <td ..

Read more

I am working on a Laravel project. After submiting the forms, if the validators are ok, it pops up a bootstrap modal, like so: @php if(session(‘message_success’)) { echo "<script> $(‘#thank-you’).modal(‘show’); </script>"; } @endphp The modal shows accordingly, but for some reason I can’t close it. Here is the code to the modal: <div class="modal" id="thank-you" ..

Read more

I’m trying to have a select in a modal, in order to have a contact formular in my application. The view is ok, the select is here, but when I select one of the options, the modal close and block everything. I’m in a livewire component. Resume.php namespace AppHttpLivewireSimulation; use LivewireComponent; use AppModelsContributor; use AppModelsCourse; ..

Read more

I am trying to output a "missing fields" textbox in my form if the fields are empty, here are my codes for context: Controller/Function public function store(Request $request) { $validator = Validator::make($request->all(), [ ‘category_name’=>’required|max:191’, ‘category_description’=>’required|max:191’, ]); if($validator->fails()) { return response()->json([ ‘status’=>400, ‘erros’=>$validator->messages(), ]); } else { $category = new HmsBbrCategory; $category->category_name = $request->input(‘category_name’); $category->category_description = ..

Read more

I want to delete selected data with confirmation modal but somehow it only delete the latest not the selected. Maybe there’s something with the JavaScript logic but I can’t seems to find anything wrong. Here’s my full code: Controller public function destroy($id) { User::find($id)->delete(); return redirect(‘usercontrol’)->with(‘status’, ‘User successfully deleted!’); } View <tbody> @foreach ($users as ..

Read more

I inserted the select2 value in the database using multi-select drop down, but when I edit the modal it returns no value in the selected value. I am using jquery ajax with Laravel. Form <form id="userForm" name="userForm" class="form-horizontal" data-parsley-validate=""> <input type="hidden" name="user_id" id="user_id"> <div class="form-group"> <label for="email" class="col-sm-2 control-label">Project</label> <div class="col-sm-12"> <select id="project_id" name="project_id[]" class="selectpicker ..

Read more