What's new in blade template language

Draft Disclaimer: Please note that this article is currently in draft form and may undergo revisions before final publication. The content, including information, opinions, and recommendations, is subject to change and may not represent the final version. We appreciate your understanding and patience as we work to refine and improve the quality of this article. Your feedback is valuable in shaping the final release.

Language Mismatch Disclaimer: Please be aware that the language of this article may not match the language settings of your browser or device.
Do you want to read articles in English instead ?

Current state

<span {{
      $attributes->class([
        'hd--delivery__status',
        'hd--delivery__status--pending' => $isPending(),
        'hd--delivery__status--cancelled' => $isCancelled(),
        'hd--delivery__status--in_progress' => $isInProgress(),
        'hd--delivery__status--confirmed' => $isConfirmed(),
        'hd--delivery__status--delivered' => $isDelivered(),
      ])
}}
>
    {{ __('delivery/status.' . $name) }}
</span>

How it was before

  • deprecates php packages like form generate (ie Bootform)

  • translation to set the ground for multilang site

  • class helper method

  • for a good separation of concern: blade component to drive logic, css for style