101 lines
5.5 KiB
Twig
101 lines
5.5 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Inventory Overview{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="container">
|
|
<h1>Drink Inventory</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</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</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 %}
|