Category : html

Im making a multi-language website and i’m using laravel 8.0 to do it. My idea is that when the user selects the origin country, to change the language as well after he chooses it. This is the register.blade.php <div> <x-jet-label for="country_id" value="{{ __(‘register.Choose your country’)}}"/> <select id="country_id" name="country_id" class=’ w-full border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 ..

Read more

I’m making a multi-language website using Laravel 8. I have translated the words using {{ __(filexp.wordexp) }} and also having the lang/en file with the words translated. I have stuck at a function which uses {!! !!} function, and I want to translate the word inside the function. <x-jet-checkbox name="terms" id="terms"/> <div class="ml-2"> {!! __(‘By ..

Read more

i am trying to pass button from controller to view here i tried this code function sendbutton (){ $order = 1; return ‘<a href="{{ url("user/order/geOrder/") . $order) }}" class="btn btn-primary" style="color:white">Edit Order</a>’ } it render successfully but problem is that my axpecting url should be "https://example.org/user/order/geOrder/1" but i am getting url https://example.org/user/order/create/Order/by/%7B%7B%20url( which is wrong ..

Read more

migration Schema::create(‘blogs’, function (Blueprint $table) { $table->id(); $table->string(‘title’); }); controller public function index() { $blog= Blog::all(); return view(‘blog’, compact(‘blogs’)); } We have something like this code on the blog page @extends(‘layouts.app’) @section(‘content’) <div class="container"> @foreach($blogs as $blog) <div class="blog-list"> <div class="blog blog–left"> <h2 class="blog_title">{{ $blog->title }}</h2> </div> <div class="blog blog–right"> <h2 class="blog_title">{{ $blog->title }}</h2> </div> ..

Read more

migration Schema::create(‘blogs’, function (Blueprint $table) { $table->id(); $table->string(‘title’); }); controller public function index() { $blog= Blog::all(); return view(‘blog’, compact(‘blogs’)); } We have something like this code on the blog page @extends(‘layouts.app’) @section(‘content’) <div class="container"> @foreach($blogs as $blog) <div class="blog-list"> <div class="blog blog–left"> <h2 class="blog_title">{{ $blog->title }}</h2> </div> <div class="blog blog–right"> <h2 class="blog_title">{{ $blog->title }}</h2> </div> ..

Read more

I’m trying to send a message to users through their user_id this is my controller public function messagesend(Request $request, $user_id){ $data = array(‘details’=>$request->details, ’email’ =>$user_id->email); Mail::send(‘transactionmessage’, $data, function($message) use ($data){ $message->from (‘[email protected]’); $message->to($request->email); $message->subject($data[‘details’]); }); // echo $$request; return redirect(‘ongoingstatus’)->with(‘success’,’Message Sent!’); } and my route is Route::post(‘/messagesend’, [UserController::class, ‘messagesend’])->middleware([‘auth’])->name(‘messagesend’); don’t know why i’m getting this ..

Read more

I’m making a multilanguage web project using laravel 8.0. To make it multi language I used https://github.com/mcamara/laravel-localization package. It works on dashboard, but not in register page. The error was SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpExceptionThe GET method is not supported for this route. Supported methods: POST.. To fix the error I added in <form: LaravelLocalization::getLocalizedURL{} This is the register.blade.php: ..

Read more

I need the "Normal Price" part to look just like label+input above (Product name+field). I’m finding trouble in adding the € sign after the field. It appears like this: <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.15/tailwind.min.css” integrity=”sha512-braXHF1tCeb8MzPktmUHhrjZBSZknHvjmkUdkAbeqtIrWwCchhcpUeAf2Sq3yIq1Q1x5PlroafjceOUbIE3Q5g==” crossorigin=”anonymous” referrerpolicy=”no-referrer” /> <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.15/base.min.css” integrity=”sha512-7w16czo+3MOe00eO6LsuOsMoUyMMAqWhNS+K7uyyL+Sjw+fHDHexWCO9w0YyMID+pTDVG5sk/+vY4Hpevoatow==” crossorigin=”anonymous” referrerpolicy=”no-referrer” /> <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.15/components.css” integrity=”sha512-9BlWpvccUKhxv9Jzha/JN6P+4hrVmhka0a0tnjtuv+Ro/V8itR/f0FM28++8CiK2CQ/qXu56VzGoHpGT3dJTKg==” crossorigin=”anonymous” referrerpolicy=”no-referrer” /> <div class=”w-full gap-6″> <div style=”display: ..

Read more

I’m working on a multi language web project using Laravel 8.0. I have use the https://github.com/mcamara/laravel-localization package to change the language. Its only 3 main pages which are dashboard, register and login. The package works correctly on dashboard page, but in the register page it shows this: SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException The GET method is not supported for ..

Read more

i want to make a statement if is_participant is one then check the box, but i tried but it doesn’t work $user = User::with(‘regency.province’); return DataTables::of($user) ->editColumn(‘is_participant’, function ($user) { return ‘<input ‘ . $user->is_participant == 1 ? "checked" : "" . ‘ type="checkbox" id="’ . $user->id . ‘">’; }) is there something missing in ..

Read more

This is my first time I make a system with an order… I am confusing how can I insert data to the pivot table order_services Tables: order table: (id, total) services table: (id, name, price) item table:(id, name) order_service table: (order_id,service_id, item_id, quantity, amount) Models: Order.php protected $guarded = []; public function services() { return ..

Read more

I have the following Angular code: <tr dir-paginate="item in file.messages | orderBy: orderByField: orderByReversed | itemsPerPage: 10: ‘fileMessages’" pagination-id="fileMessages"> <td>{{ item.id }}</td> <td>{{ item.created_at }}</td> <td><span data-ng-class="[‘label’, ‘label-‘ + item.type]">{{ item.type }}</span></td> <td>{{ item.message }}</td> </tr> Now the item.message contains some html which is coming from back end of the application which is in Laravel. ..

Read more

I am trying to create a link to download a .ics file based on the Data for iCalendar event. Here’s the code which is working independently but not working in Mail which I’m sending. <?php header(‘Content-Encoding: UTF-8’); header(‘Content-type: text/calendar; charset=utf-8’); $attach_d_link = “data:text/calendar;charset=utf8;base64,QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KQkVHSU46VkVWRU5UDQpVSUQ6ZWViODI5NGI0MjQzNWI3NDAwMDdjOGE0YzM5OGQ5NzkNClNVTU1BUlk6U2tpcHBlZCB0b3BpY3MgZnJvbSBsYXN0IHNlc3Npb24NCkRUU1RBUlQ7VFpJRD1BbWVyaWNhL05ld19Zb3JrOjIwMjEwOTE3VDEwMzAwMA0KRFRFTkQ7VFpJRD1BbWVyaWNhL05ld19Zb3JrOjIwMjEwOTE3VDExMzAwMA0KREVTQ1JJUFRJT046RGVzY3JpcHRpb24gRGVzY3JpcHRpb24gRGVzY3JpcHRpb24gRGVzY3JpcHRpb24gRGVzY3JpcHRpb24gRGVzY3JpcHRpb24gDQpFTkQ6VkVWRU5UDQpFTkQ6VkNBTEVOREFS”; ?> <a href=”{{$attach_d_link}}” download=”Cal.ics”> <button type=”button”>iCalendar</button> </a> I want to use the ..

Read more

I have tried this code but it only worked once after that i have to refresh the page and then again it will work only once. `enter code here`<tr class="all"> <!–Guarito=Healed –> <th style="width:30vh" class="table-info">Guarito</th> @for($i=0;$i<4;$i++) <td> <input type="checkbox" name="Guarito-{{$i}}" id="Guarito-{{$i}}" class="selectall" @if(!empty($FollowupTreatment[$i] ->guarito) && $FollowupTreatment[$i] ->guarito == 1) checked @endif > </td> </tr> Here ..

Read more

if the only 2nd box is checked then the 3rd one and 4th one must be checked automatically. and if the only 3rd box is checked then the 4th one must be checked automatically. <tr class="all"> <!–Guarito–> <th style="width:30vh" class="table-info">Guarito/2</th> @for($i=0;$i<4;$i++) <td> <input type="checkbox" class="selectall" name="Guarito-{{$i}}" id="Guarito-{{$i}}" @if(!empty($FollowupTreatment[$i] ->guarito) && $FollowupTreatment[$i] ->guarito == 1) checked ..

Read more

When I get the input for a date text box it throws the error. I don’t know why anyone can help me. The code is below <div class="form-group-inline d-flex mb-2"> <label for="payment_date" class="field-required mr-8 pt-1">Payment date</label> <input type="date" class="form-control flex-1" name="payment_date" id="payment_date" required="required" value="{{ $invoice->payment_at ? $invoice->payment_at->format(‘Y-m-d’) : date(‘Y-m-d’) }}" > I am trying to ..

Read more

I have installed Laravel script which has his own front page (homepage) which i dont like and wanted to replace with my own html. I moved css, images to public folder, renames index.html to index.blade.php (moved to resources/views) and added routing – Route::get(‘/index2’, function () {return view(‘index2’);}); but it does not load my homepage. I ..

Read more

I have a question concerning the activation of span tags with class value, so I want that value be activated when the slug of the website is equal to the class value didn’t know how to make it , here is my code: @foreach ($categories as $category) <span id="span-{{$category->name}}" class="item" data-name="{{$category->name}}" onClick="window.location.href='{{route(‘product.category’,[‘category_slug’=>$category->slug])}}’" >{{$category->name}} </span> @endforeach ..

Read more