{{$item->title}}
@isset($item->author)By {{$item->author->name}}
@endisset @unless($item->published) Draft @endunless{{Str::limit($item->body,120)}}
{!! $item->rendered_html !!} Price: {{Money::format($item->price)}} @if($item->onSale){{-- everything.blade.php: a deliberately messy, exhaustive Blade document --}} @php use App\Models\User; use App\Support\Money; @endphp @use('App\Enums\Status') @inject('metrics', 'App\Services\Metrics')
{{$message}}
@enderror @error('password'){{$message}}
@elseChoose a strong password.
@enderror @if($errors->any())By {{$item->author->name}}
@endisset @unless($item->published) Draft @endunless{{Str::limit($item->body,120)}}
{!! $item->rendered_html !!} Price: {{Money::format($item->price)}} @if($item->onSale)Nothing here yet.
@endforelse| Name | Status | Joined | ||
|---|---|---|---|---|
| {{$user->name}} | {{$user->email}} | @if($user->active) โ @else โ @endif | {{$user->created_at->diffForHumans()}} | @can('update',$user) Edit @endcan |
| No users found. | ||||
| Total: {{$users->total()}} | ||||
{{$product->description}}
@if($product->inStock()) @else Out of stock @endif{{$activity->actor}} {{$activity->description}}
@endforeach{{$modalBody}}
Literal braces: @{{ notBlade }}
{{-- fragments (Livewire) --}} @fragment('list'){{collect($metrics->all())->map(fn($m)=>$m->value)->filter(fn($v)=>$v>0)->sum()}}
{{-- raw echo and escaped braces mixed --}}{{-- alpine + inline handlers --}}{{$quote->text}}
@lang('messages.welcome',['name'=>$user->name])
{{trans_choice('messages.items',$count,['count'=>$count])}}
{{-- session directive --}} @session('success')
function greet(name) {
return "Hello, " + name;
}
{{-- a nested @php block computing a summary --}}
@php
$summary = [
'total' => $total,
'active' => $activeCount,
'ratio' => $total > 0 ? round($activeCount / $total, 2) : 0,
];
@endphp
{{-- notifications dropdown with nested loops --}}
{{$faq['answer']}}
@isset($faq['link']) Learn more @endisset{{Money::format($plan->price)}}/{{$plan->interval}}
{{$widget->formattedValue}}
@if($widget->trend>0) โฒ {{$widget->trend}}% @elseif($widget->trend<0) โผ {{abs($widget->trend)}}% @else โ @endif @break @case('list')Unsupported widget.
@endswitch{{$event->summary}}
@unless($event->attachments->isEmpty()) @endunlessDrop cards here.
@endforelse| {{$weekday['short']}} | @endforeach
|---|
$day['isToday'],'day--outside'=>!$day['inMonth'],'day--busy'=>count($day['events'])>0])>
{{$day['number']}}
@if(count($day['events'])>0)
|
@endforeach
{{$kpi['label']}}
{{$kpi['value']}}
@isset($kpi['delta'])$kpi['delta']>=0,'kpi__delta--down'=>$kpi['delta']<0])> {{$kpi['delta']>=0?'+':''}}{{$kpi['delta']}}%
@endissetIssued {{$invoice->issued_at->format('M j, Y')}}
@if($invoice->paid) Paid @elseif($invoice->overdue) Overdue @else Due {{$invoice->due_at->diffForHumans()}} @endif| Item | Qty | Unit | Total |
|---|---|---|---|
| {{$line->description}} @isset($line->note) {{$line->note}} @endisset | {{$line->quantity}} | {{Money::format($line->unitPrice)}} | {{Money::format($line->total)}} |
| Subtotal | {{Money::format($invoice->subtotal)}} | ||
| Discount | -{{Money::format($invoice->discount)}} | ||
| Tax ({{$invoice->taxRate}}%) | {{Money::format($invoice->tax)}} | ||
| Total | {{Money::format($invoice->total)}} | ||
{{trans_choice('comments.count',$comments->count(),['count'=>$comments->count()])}}
@forelse($comments as $comment)Be the first to comment.
@endforelse