59 lines
3.1 KiB
PHP
59 lines
3.1 KiB
PHP
<div class="page-header">
|
|
<div>
|
|
<h1 class="page-title">Start a Food / Canteen Session</h1>
|
|
<p class="page-subtitle">Host a lunch order, post the available menu, and collect orders from your team</p>
|
|
</div>
|
|
<div>
|
|
<a href="/" class="btn btn-secondary">← Back to Active Sessions</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="max-width: 680px; margin: 0 auto;">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2 class="card-title">Session Details</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="/sessions">
|
|
<?= \App\Core\View::csrfField() ?>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">Session Title <span style="color: var(--danger);">*</span></label>
|
|
<input type="text" name="title" class="form-control" placeholder="e.g. Dea's Kantin Bu Siti Lunch Run" value="<?= e($currentUser['name']) ?>'s Lunch Run" required autofocus>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label class="form-label">Canteen / Restaurant Name <span style="color: var(--danger);">*</span></label>
|
|
<input type="text" name="canteen_name" class="form-control" placeholder="e.g. Kantin Bu Siti / Nasi Padang Sederhana" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">Date <span style="color: var(--danger);">*</span></label>
|
|
<input type="date" name="session_date" class="form-control" value="<?= date('Y-m-d') ?>" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">Notice / Cut-off Instructions</label>
|
|
<input type="text" name="notes" class="form-control" placeholder="e.g. Please place your order before 11:30 AM! Delivery around 12:15 PM.">
|
|
</div>
|
|
|
|
<div class="form-group" style="margin-top: 1.5rem;">
|
|
<label class="form-label">
|
|
<span>Today's Available Menu Options (Paste line by line from chat):</span>
|
|
</label>
|
|
<textarea name="menu_text" class="form-textarea" rows="5" placeholder="1. Ayam Bakar Madu + Nasi 2. Ayam Geprek Sambal Bawang 3. Nasi Goreng Spesial 4. Soto Ayam Lamongan 5. Es Teh Manis 6. Es Jeruk Segar"></textarea>
|
|
<small style="color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; display: block;">
|
|
💡 Prices are not needed yet! You can settle final prices after the food arrives with the receipt.
|
|
</small>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" style="width: 100%; padding: 0.85rem; font-size: 1rem; margin-top: 1rem;">
|
|
🚀 Publish Food Session & Open for Orders
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|