Krishma

Krishma

Member Since 1 Month Ago

Experience Points
890
Total
Experience

4,110 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
890 XP
Mar
05
3 weeks ago
Activity icon

Started a new Conversation Jasper Ireport

How to connect jasper ireport to live server????

Feb
28
1 month ago
Activity icon

Started a new Conversation Jasper Ireport

Hi, how to upload Japser ireport on server

Feb
24
1 month ago
Activity icon

Started a new Conversation How To Fetch Data Through Id In Laravel??

I m unaware

Activity icon

Started a new Conversation Ireports

How to display table in ireport designer using where clause??

Feb
19
1 month ago
Activity icon

Replied to Getting $ Not Defined Error

@sinnbeck i m getting the proper id

Activity icon

Replied to Getting $ Not Defined Error

@a4ashraf Its working fine.But there is one more issue when i press the delete button i get the confirm message proper bt when i press ok the row doesn't deleted and when i refresh the page row gets deleted

Activity icon

Started a new Conversation Getting $ Not Defined Error

<script type='text/javascript'>

function remove(id){    
  $.ajax({
    url: "{{ url('AssetCategoryController/delete') }}",
    type: 'get',
    data: { id: id},
    dataType: 'json',
    success: function (data) {
    var msg = confirm('Are you sure want to Delete this data?');
            if (msg == true) {
                $('#' + id).remove();
                return false;
            }
        },
  });
}
</script>
Activity icon

Replied to How To Avoid Duplicate Values At The Time Of Update Query Using If And Else Condition In Laravel Controller

@sinnbeck I just want to avoid duplications of category_code during update query bt i want to use if and else condition how it is possible??

Activity icon

Replied to How To Avoid Duplicate Values At The Time Of Update Query Using If And Else Condition In Laravel Controller

@willvincent

function update(Request $request,$id)
{
    $category_code = $request->input('category_code');
    $category_desc = $request->input('category_desc');
    $modified_on = date('Y-m-d');
    $modified_by = 0;
    
    $data= array('category_code'=>$category_code,'category_desc'=>$category_desc,'modified_on'=>$modified_on,'modified_by'=>$modified_by);

    DB::table('asset_category')->where('category_id',$id)->update($data);
}

This is my actual code now in these i want to use if and else condition to avoid duplicate values during update

Activity icon

Started a new Conversation How To Avoid Duplicate Values At The Time Of Update Query Using If And Else Condition In Laravel Controller

function update(Request $request,$id)
        {
            $category_code = $request->input('category_code');
            $category_desc = $request->input('category_desc');
            $modified_on = date('Y-m-d');
            $modified_by = 0;

            $mysql = DB::table('asset_category')->where('category_id',$id)->select($category_code);
            if($mysql==$category_code)
            {
            $data= array('category_code'=>$category_code,'category_desc'=>$category_desc,'modified_on'=>$modified_on,'modified_by'=>$modified_by);
            DB::table('asset_category')->where('category_id',$id)->update($data);
            }
            else{
                $cnt= DB::table('asset_category')->where('category_code',$category_code)->count();
                if($cnt > 0){
                    return redirect('AssetCategoryController/update/{id}')->with('category_code', $category_code)->withInput()->withErrors('Data Already Exist');
                }else{
                    $data= array('category_code'=>$category_code,'category_desc'=>$category_desc,'modified_on'=>$modified_on,'modified_by'=>$modified_by);
                    DB::table('asset_category')->where('category_id',$id)->update($data);
                }
            }
            
        }

i have tried this but i m not getting any output

Feb
15
1 month ago
Activity icon

Replied to Dompdf

Which version of PHP and DOMPDF is required for live server???

Activity icon

Replied to Dompdf

@sinnbeck I m getting barryvdh class not defined

Activity icon

Started a new Conversation Dompdf

I am using Dompdf for creating pdf file.On localhost i am getting proper pdf format but while i upload it to live server i m getting error "class" not defined...

I am using PHP version 7.2 and Dompdf version 0.8.5 for localhost but Can Anyone suggest me which version of dompdf and php is required to upload it on live server?

Feb
13
1 month ago
Activity icon

Replied to How To Convert Number Into Words In DomPDF Using Laravel??

@ahkeravi Suppose i have 9076.63 then in words i want Ninety Thousand Seventy six cents sixty three

Activity icon

Started a new Conversation How To Convert Number Into Words In DomPDF Using Laravel??

I am using Barryvdh Dompdf

Feb
12
1 month ago
Activity icon

Started a new Conversation How To Calculate Subtotal And Total In Laravel Without Using Sum()

Without using sum method how to calculate subtotal and total in laravel?

Feb
11
1 month ago
Activity icon

Replied to How To Display HSN Code Wise Data In Laravel Using Table Format

How to give subtotal and total in laravel in blade.php

Activity icon

Replied to How To Display HSN Code Wise Data In Laravel Using Table Format

<tr>
    <td>{{$val->hs_code}}</td>
    <td>{{$val->cust_order_no}}</td>
    <td>{{$val->fg_item}}</td>
    <td>{{$val->net_wt}}</td>
    <td>{{$val->qty}}</td>
    <td>{{$val->rate}}</td>
    <td>{{$val->amount}}</td>
</tr>
This is my code Nw in these I want display HSN code wise data and also total amount hsn code wise How can i do that
Feb
10
1 month ago
Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

Nw I have one more doubt suppose I have same number of code data of multiple rows in table how will i seperate it and also How will I do total of same number of codes

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

Nw I have one more doubt suppose I have same number of code data of multiple rows in table how will i seperate it and also How will I do total of same number of codes

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

Ok thanks everyone for ur suggestions.

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@foreach ($dataz as $order)
     {{$order->cust_order_no}}
    {{$order->fg_item}}
    {{$order->net_wt}}
    {{$order->qty}} 
    {{$order->rate}}
    {{$order->amount}}
@endforeach 

Inside foreach loop i want to use where clause to get a specific record
Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@foreach ($dataz as $order) {{$order->cust_order_no}} {{$order->fg_item}} {{$order->net_wt}} {{$order->qty}} {{$order->rate}} {{$order->amount}} @endforeach This is my code I want to use where clause for hsn code inside foreach loop

Activity icon

Started a new Conversation How To Use Where Condition Inside Foreach Loop?

I m unaware

Feb
04
1 month ago
Activity icon

Replied to Dompdf

How to set fix number of rows in dompdf pdf file for particular page using foreach loop

Activity icon

Replied to Dompdf

how to give page number out of total pages in dompdf for example: 1 of 3 how to code the above example in dompdf

Activity icon

Replied to Dompdf

Code: @foreach ($dataz as $order) {{$order->cust_order_no}} {{$order->fg_item}} {{$order->net_wt}} {{$order->qty}} {{$order->rate}} {{$order->amount}} @endforeach

Activity icon

Replied to Dompdf

Order.No Part Name Net Wt Qty in Pcs Rate/USD/100 Amount DDP-OHRINGEN @foreach ($dataz as $order) {{$order->cust_order_no}} {{$order->fg_item}} {{$order->net_wt}} {{$order->qty}} {{$order->rate}} {{$order->amount}} @endforeach Total {{$datax->net_wt}} {{$datax->total_qty}} {{$datax->total_amount}}

Output i m getting is 102rows and entire 102 rows are getting printed on 3 pages in pdf file so in between foreach loop i need to add some text like the the table is continued on next page so is that possible to break loop somewhere so that i can add sme text at the end of the page ??

Activity icon

Replied to Dompdf

In dompdf pdf how will i write some text at end of the page???

Activity icon

Replied to Dompdf

I want to add some text inside foreach loop(or any loop) how can i do that

Activity icon

Replied to Dompdf

In my code in between for each loop i want to write (TO BE CONTINUED...)for next page is it possible

Activity icon

Replied to Dompdf

but it wont be complusary that there will be fix number of rows

Activity icon

Replied to Dompdf

I have a table in which i have 102 rows so on single page along with header i cant print 102 rows so half of the table is printed on next page so in first page at the bottom i want to write to be continued.... Below is my code

@foreach ($dataz as $order)
        <tr>
            <td>{{$order->cust_order_no}}</td>
            <td>{{$order->fg_item}}</td>
            <td>{{$order->net_wt}}</td>
            <td>{{$order->qty}}</td>
            <td>{{$order->rate}}</td>
            <td>{{$order->amount}}</td>
        </tr>
        @endforeach
Activity icon

Started a new Conversation Dompdf

How to add text i.e to be continued in between for each loop