BossPogs

BossPogs

Member Since 10 Months Ago

Experience Points
2,070
Total
Experience

2,930 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
2,070 XP
Mar
15
4 months ago
Activity icon

Replied to HTML U.I For Smart TV

Unfortunately the TV that there bought is not latest one. Its browser is not the latest. It doesn't have the app store on it.

Mar
13
4 months ago
Activity icon

Replied to HTML U.I For Smart TV

Yeah there is a browser especially in smart tv. So if you did a dedicated app for that, how it would install on tv? I also agree on you that it would be a waste of time making it work on opera for tv.

Activity icon

Replied to HTML U.I For Smart TV

It would be tricky sir and still I need to learn that and long long way to go until it would be responsive. The problem also on my TV is the browser which is Opera and it is already outdated so I think some of the codes would not be working. I cannot update that browser also to the latest one and the latest for the Opera is Vewd. Anyway, it is a challenge to design a responsive U.I.

Mar
11
4 months ago
Activity icon

Replied to HTML U.I For Smart TV

Will you recommend what best for the responsive design for all devices including tv?

Mar
10
4 months ago
Activity icon

Replied to HTML U.I For Smart TV

Will html5 code would also work on tv?

Activity icon

Started a new Conversation HTML U.I For Smart TV

Hello newbie here. I just want to ask about the HTML u.i for Smart TV. I just wonder if your design would be different from computer in smart t.v. Because when I check in my computer, my website's design is okay. When I access in smart tv browser, it something different. Just like my html5 videos looping, it display the videos in my computer browser, but in smart tv, no videos is playing. It is my first time to do this system. Sorry if I had a hard time explaining my question, but I just want to ask because I had no idea about this.

Feb
27
5 months ago
Activity icon

Started a new Conversation Javascript On-Screen Keyboard Pops Out On A Specific Input Only

Hello. I had a touch screen monitor used for the kiosk in queuing system. Currently, I had install virtual keyboard extension in Firefox. It works. But in my system, I just want a specific input only to where an on-screen keyboard should only pops. For example I had two inputs.

<input type="number" id="amount" class="form-control" name="amount" step=".01" required> <-- this one should pop up the on-screen keyboard because it would type the amount-->

<input type="password" id="rfid" class="form-control" name="rfid" required> <--this one should not pop up the keyboard because it should tap the id-->

That's my concern for now. I've been also searching a plugin if that is possible.

Feb
24
5 months ago
Activity icon

Replied to Missing Required Parameters For [Route: Student.destroy] [URI: Student/{student}]

| DELETE | student/{student} | student.destroy | App\Http\Controllers\[email protected]

Activity icon

Replied to Missing Required Parameters For [Route: Student.destroy] [URI: Student/{student}]

Just this one sir Route::resource('student', 'StudentController');

Activity icon

Replied to Missing Required Parameters For [Route: Student.destroy] [URI: Student/{student}]

The error is now solved. However, there is another error, The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST.

Activity icon

Started a new Conversation Missing Required Parameters For [Route: Student.destroy] [URI: Student/{student}]

Hello. I had confused with that error above and I double check that code I include the parameter. Check my code below

<form action="{{ route('student.destroy', $student->id) }}" method="POST" onsubmit="return confirm('Are you sure you want to unenroll?');" style="display: inline-block;">
                     <input type="hidden" name="_token" value="{{ csrf_token() }}">
                     <input type="hidden" name="_method" value="DELETE">
                     <input type="submit" class="btn btn-danger" value="Unenroll">
</form>

My code in controller

public function destroy($id)
    {
        $student = Student::where('student_id', $id)->first();

        //reset to active
        if ($student->enrolled == 0){
            $student->enrolled = 1;
            $student->save();

            return redirect()->back()->with('success','Student was successfully enrolled');
        }
        else{
            $student->enrolled = 0;
            $student->save();

            return redirect()->back()->with('error','Student is now unenrolled');
        }
    }

I'm still wondering why I get the error missing required parameters even I had already that one.

Feb
20
5 months ago
Activity icon

Replied to How To Print A Specific Div Only?

okay sir. will try that one

Activity icon

Replied to How To Print A Specific Div Only?

So my CSS code in my blade should transfer in print.css based on what I understand?

In print.css

@media print
        {
            .button
            {
                display: none;
            }
        }

        @media print
        {
            @page {
                margin-top: 0;
                margin-bottom: 0;
            }
            body {
                padding-top: 72px;
                padding-bottom: 72px;
            }
        }
Activity icon

Replied to How To Print A Specific Div Only?

I just load in my blade file in my style section

Activity icon

Replied to How To Print A Specific Div Only?

Okay sir I may struggle adjusting on its css sir.

Activity icon

Replied to How To Print A Specific Div Only?

screenshot

From the print preview. If you notice, the default printer is my POS printer that's why the paper in the preview is vertical. I just want the square one will only be print.

Activity icon

Started a new Conversation How To Print A Specific Div Only?

Hello. I've been trying to print a receipt. I want to print only the specific div and the size would be the same as the specific div as I print it in thermal printer.

<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        @media print
        {
            .button
            {
                display: none;
            }
        }

        @media print
        {
            @page {
                margin-top: 0;
                margin-bottom: 0;
            }
            body {
                padding-top: 72px;
                padding-bottom: 72px;
            }
        }
    </style>
</head>

<body style="background: #f9f9f9">

    <div class="container">
        <div class="row">
            <div class="col-xs-12">
        
        <-- THIS DIV ONLY -->
                <div id="print" class="print" style="border: 1px solid #a1a1a1; width: 88mm; background: white; padding: 10px; margin: 0 auto; text-align: center;">

                    <div class="invoice-title" align="center">
                        <span id="num2" style="font-size:85px; font-weight:bold;line-height:1.45">
                            {{ $call->letter }}-{{ $call->number }}
                        </span>
                    </div>

                    <div class="invoice-title" align="center">
                        <b>{{ $call->trans_name ?? 'no transaction' }}</b>
                    </div>
                    

                    <div class="invoice-title" align="center">
                        <b>Php {{ $call->amount }}</b>
                    </div>

                    <div class="invoice-title" align="center">
                        <b>Issued on {{$call->created_at}}</b>
                    </div>

                    <br>
                    
                </div>
            </div>
        </div>
    </div>

    


    <script type="text/javascript">
        myFunction();

        function myFunction(){
            window.print();
        }

        window.onafterprint = function(e){
            closePrintView();
        }

        function closePrintView(){
            window.location.href = '{{ route('office.show', ['name' => $call->office_name]) }}'     
        }
    </script>
</body>
</html>

In my specific div, it specifies it size and only that div will be printed only. I've been struggling on that for a long time and trying everything I search.

Feb
17
5 months ago
Activity icon

Replied to Laravel ESCPOS

Thank you for sharing it. I will study that one. If I deploy my website on the server it would print it to any thermal printer?