saufen/templates/index.html.twig
lubiana be09ed2f30
Some checks failed
/ ls (pull_request) Failing after 22s
/ ls (release) Successful in 48s
/ ls (push) Successful in 1m20s
facts
2025-06-16 20:51:30 +02:00

116 lines
7 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}🍻🍺🥃🍷🍸🍹🥂🍾💃🕺🎉🎊✨ INVENTORY OVERVIEW!!! 🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪🎪🎨🎭🎪🎯🎲🎰🎊🎉{% endblock %}
{% block body %}
<div class="container">
<h1>
DRINK INVENTORY
<span class="emoji-normal">💦</span>
<span class="emoji-enhanced">💦🍑🍆</span>
<span class="emoji-bonkers">💦🍑🍆👅💋😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</h1>
{% if lowStock != [] %}
<div class="card">
<div class="card-header bg-danger">
<h5 class="card-title">🚨🔥💀⚠️🆘🚨 LOW STOCK ALERT!!! 🚨🔥💀⚠️🆘🚨</h5>
</div>
<div class="card-body">
<ul>
{% for drinkType in lowStock %}
<li>🍻 {{ drinkType.name }} ({{ drinkType.currentStock }} / {{ drinkType.wantedStock }}) 🍻</li>
{% endfor %}
</ul>
{% if orders == [] %}
<a href="{{ path('app_drink_type_bulk_edit_wanted_stock', {'from_order': 'true'}) }}" class="btn btn-primary">🛒🛍️💳💰✨ CREATE NEW ORDER!!! 🎉🎊🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪</a>
{% else %}
<p>🔥💯 There are already orders planned: 🎯🎪🎨🎭</p>
<ul>
{% for order in orders %}
<li>
<a href="{{ path("app_order_show", {'id': order.id}) }}">
🛒 {{ order.id }} - {{ order.status.value }} 🛒
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endif %}
<div class="card mt-3">
<div class="card-header">
<h5 class="card-title">🍻🍺🥃🍷🍸🍹🥂🍾 DRINK INVENTORY OVERVIEW!!! 🎉🎊✨💃🕺🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪</h5>
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>
DRINK NAME
<span class="emoji-normal">🍑</span>
<span class="emoji-enhanced">🍑🍆💋</span>
<span class="emoji-bonkers">🍑🍆💋👅😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</th>
<th>📝✨ DESCRIPTION!!! 💖💕</th>
<th>📊💯 CURRENT STOCK!!! 🔥📈</th>
<th>🎯💰 WANTED STOCK!!! ⭐✨</th>
<th>🎮🎪 ACTIONS!!! 🚀💫</th>
</tr>
</thead>
<tbody>
{% for drinkType in drinkTypes %}
<tr>
<td>
<a href="{{ path('app_drink_type_show', {'id': drinkType.id}) }}">🍻 {{ drinkType.name }} 🍻</a>
</td>
<td>✨ {{ drinkType.description }} ✨</td>
<td>📊 {{ drinkType.currentStock }} 📊</td>
<td>🎯 {{ drinkType.wantedStock }} 🎯</td>
<td>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="mt-3">
<a href="{{ path('app_drink_type_index') }}" class="btn btn-primary">
VIEW ALL DRINKS
<span class="emoji-normal">🍆</span>
<span class="emoji-enhanced">🍆💦🍑</span>
<span class="emoji-bonkers">🍆💦🍑👅💋😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</a>
<a href="{{ path('app_drink_type_bulk_edit_stock') }}" class="btn btn-secondary">📊🔥 MASS UPDATE CURRENT STOCK!!! 💯⚡🚀💫⭐✨</a>
<a href="{{ path('app_drink_type_bulk_edit_wanted_stock') }}" class="btn btn-secondary">🎯💰 MASS UPDATE WANTED STOCK!!! 🛒🛍️💳🎪🎨🎭</a>
</div>
</div>
</div>
<div class="card mt-3">
<div class="card-header bg-rainbow">
<h5 class="card-title">✨ Fabulous Drink Fun Facts ✨</h5>
</div>
<div class="card-body">
{% set funFacts = [
"The world's first gay bar, Café Lafitte in Exile, opened in New Orleans in 1933 and still serves fabulous cocktails today!",
"The colorful rainbow cocktail was created to celebrate Pride and contains six different colored liqueurs representing the Pride flag!",
"Drag queens in the 1950s would often meet at underground bars and order 'lavender cocktails' as a secret code!",
"The Cosmopolitan cocktail gained massive popularity thanks to 'Sex and the City' and became an LGBTQ+ nightlife staple!",
"The Stonewall Inn, site of the 1969 riots that sparked the modern LGBTQ+ rights movement, was originally a gay bar!",
"The term 'toast' comes from ancient Rome where they would literally put toast in wine to improve its flavor - how's that for quirky?",
"Champagne glasses were modeled after Marie Antoinette's breasts, according to fabulous but dubious historical legend!",
"Tequila doesn't contain a worm - that's mezcal, darling! And it's actually a moth larva, not a worm!",
"The world's most expensive cocktail, 'Diamonds Are Forever,' costs $22,600 and contains a real diamond at the bottom!",
"Absinthe was banned for nearly 100 years because people thought it caused hallucinations and 'moral degeneration' - how dramatic!",
"Ancient Egyptians believed that drinking wine made from red grapes was drinking the blood of those who had fought against the gods - fierce!",
"The Moscow Mule cocktail was invented to help sell vodka to Americans who thought it was too boring - now it's served in those gorgeous copper mugs!",
"The Bloody Mary was created as a hangover cure and named after Queen Mary I of England, who was quite the drama queen!"
] %}
{% set randomIndex = random(0, funFacts|length - 1) %}
<p class="mb-0 fun-fact">{{ funFacts[randomIndex] }}</p>
<p class="text-end mt-3"><small>💅 Slay all day while you sip away! 🏳️‍🌈</small></p>
</div>
</div>
</div>
{% endblock %}