mirror of https://github.com/kcal-app/kcal.git
Use @php instead of {{ when setting title
This commit is contained in:
parent
be681f0dd7
commit
98c961b7d1
|
@ -1,5 +1,5 @@
|
|||
<x-app-layout>
|
||||
{{ $title = ($food->exists ? "Edit {$food->name}" : 'Add Food') }}
|
||||
@php($title = ($food->exists ? "Edit {$food->name}" : 'Add Food'))
|
||||
<x-slot name="title">{{ $title }}</x-slot>
|
||||
<x-slot name="header">
|
||||
<h1 class="font-semibold text-xl text-gray-800 leading-tight">{{ $title }}</h1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<x-app-layout>
|
||||
{{ $title = ($goal->exists ? 'Edit' : 'Add') . ' Goal' }}
|
||||
@php($title = ($goal->exists ? 'Edit' : 'Add') . ' Goal')
|
||||
<x-slot name="title">{{ $title }}</x-slot>
|
||||
<x-slot name="header">
|
||||
<h1 class="font-semibold text-xl text-gray-800 leading-tight">{{ $title }}</h1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<x-app-layout>
|
||||
{{ $title = ($recipe->exists ? "Edit {$recipe->name}" : 'Add Recipe') }}
|
||||
@php($title = ($recipe->exists ? "Edit {$recipe->name}" : 'Add Recipe'))
|
||||
<x-slot name="title">{{ $title }}</x-slot>
|
||||
<x-slot name="header">
|
||||
<h1 class="font-semibold text-xl text-gray-800 leading-tight">{{ $title }}</h1>
|
||||
|
|
Loading…
Reference in New Issue