there are few main derivates of laravel which are given below:
@include
@yield
@extend
@section
@php
/*
{{ 'Hello Blade Worldd' }}
{{-- {!! '
Hello HTML World
' !!} --}}
{!!""!!}
{{-- This is a comment --}}
{{ 3+1 }}
{{-- To Print ARRAY VALUES --}}
{!! 'This is Array Printing
' !!}
@php
$user=['Hadi','Arham','Junaid','Kabeer'];
@endphp
@foreach ($user as $u)
- {{ $u }}
@endforeach
{{-- USING Index --}}
@foreach ($user as $u)
- {{ $loop->index }}-{{ $u }}
@endforeach
{{-- USING iteration --}}
@foreach ($user as $u)
- {{ $loop->iteration }}-{{ $u }}
@endforeach
{{-- USING count --}}
@foreach ($user as $u)
- {{ $loop->count }}-{{ $u }}
@endforeach
{{-- USING if-loop --}}
@foreach ($user as $u)
@if($loop->first)
- {{ $u }}
@elseif ($loop->last)
- {{ $u }}
@endif
@endforeach
{{-- USING if-loop --}}
@foreach ($user as $u)
@if($loop->even)
- {{ $u }}
@elseif ($loop->odd)
- {{ $u }}
@endif
@endforeach
*/
@endphp