Laravel - Blade Templates - Raw Php

In some situations, it's useful to embed PHP code into your views. You can use the Blade @php directive to execute a block of plain PHP within your template:

    
    @php
        $counter = 1;
    @endphp