{{define "tabler_toast"}}
{{$t := .}}
<div class="toast{{if $t.Show}} show{{end}}" id="toast-{{defaultVal "simple" $t.ID}}" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false">
  {{if not $t.HideHeader}}
  <div class="toast-header">
    <span class="avatar avatar-xs me-2" style="background-image: url({{defaultVal "/public/static/avatars/000m.jpg" $t.PersonSrc}})"></span>
    <strong class="me-auto">{{defaultVal "Jane Doe" $t.PersonName}}</strong>
    <small>{{defaultVal "11 mins ago" $t.Date}}</small>
    <button type="button" class="ms-2 btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
  </div>
  {{end}}
  <div class="toast-body">
    {{if $t.Cookies}}
    🍪&nbsp;Our site uses cookies. By continuing to use our site, you agree to our Cookie Policy.
    <div class="mt-2 pt-2 border-top">
      <a href="#" class="btn btn-primary btn-sm">I understand</a>
    </div>
    {{else}}
    {{defaultVal "Hello, world! This is a toast message." $t.Text}}
    {{end}}
  </div>
</div>
{{end}}
