İçeriğe geç
Tüm kodlar

ER3NSHOP

Kurulum sihirbazlı online mağaza sistemi

26 satır · 1,8 KBHamİndir
<section class="container-x pt-8">
    <?php breadcrumb(['Hesabım' => url('hesabim'), $title => null]) ?>
    <div class="mt-8 grid gap-10 lg:grid-cols-[260px_1fr] lg:gap-14">
        <aside>
            <div class="flex items-center gap-4 rounded-2xl bg-zinc-50 p-5">
                <span class="flex size-12 shrink-0 items-center justify-center rounded-full bg-ink text-lg font-semibold text-white"><?= e(mb_strtoupper(mb_substr(current_customer()['name'], 0, 1))) ?></span>
                <div class="min-w-0">
                    <p class="truncate font-semibold text-ink"><?= e(current_customer()['name']) ?></p>
                    <p class="truncate text-xs text-zinc-500"><?= e(current_customer()['email']) ?></p>
                </div>
            </div>
            <nav class="mt-4 flex flex-wrap gap-1 lg:flex-col">
                <?php foreach (account_menu() as [$file, $label, $name]): ?>
                    <a href="<?= url($file) ?>" class="flex items-center gap-3 rounded-xl px-4 py-3 text-sm font-medium transition <?= in_array(current_file(), [$file, $file === 'siparislerim' ? 'siparis' : ''], true) ? 'bg-zinc-100 text-ink' : 'text-zinc-600 hover:bg-zinc-50 hover:text-ink' ?>">
                        <?= icon($name, 'size-5') ?><?= $label ?>
                    </a>
                <?php endforeach ?>
                <form method="post" action="<?= url('cikis') ?>">
                    <?= csrf_field() ?>
                    <button class="flex w-full items-center gap-3 rounded-xl px-4 py-3 text-sm font-medium text-zinc-600 transition hover:bg-zinc-50 hover:text-rose-600"><?= icon('logout', 'size-5') ?>Çıkış yap</button>
                </form>
            </nav>
        </aside>
        <div class="min-w-0">
            <h1 class="font-display text-3xl font-semibold tracking-tight text-ink"><?= e($title) ?></h1>
            <div class="mt-8">

Lisans bilgisi projenin LICENSE dosyasında.