29 lines
1.3 KiB
PHP
29 lines
1.3 KiB
PHP
<?= $this->extend('layout/main') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
|
<h1 class="h4 mb-0">Nowy import paragonu</h1>
|
|
<a href="<?= site_url('receipts') ?>" class="btn btn-link">← Historia importów</a>
|
|
</div>
|
|
|
|
<div class="card shadow-sm">
|
|
<div class="card-body">
|
|
<?= form_open_multipart('receipts', ['class' => 'row g-3']) ?>
|
|
<div class="col-12">
|
|
<label class="form-label">Zrób zdjęcie lub wybierz plik paragonu</label>
|
|
<input type="file" name="receipt" class="form-control" required
|
|
accept=".jpg,.jpeg,.png,.pdf,.json,image/*,application/pdf,application/json"
|
|
capture="environment">
|
|
<div class="form-text">
|
|
Na telefonie możesz zrobić zdjęcie paragonu. Obsługiwane formaty: JPG/PNG, PDF lub JSON. Maks. 10 MB.
|
|
Po wgraniu AI odczyta pozycje i zaproponuje kategorie do zatwierdzenia.
|
|
</div>
|
|
</div>
|
|
<div class="col-12">
|
|
<button type="submit" class="btn btn-primary">Wgraj i przetwórz</button>
|
|
</div>
|
|
<?= form_close() ?>
|
|
</div>
|
|
</div>
|
|
<?= $this->endSection() ?>
|