<?= $this->extend('layouts/mobile') ?>

<?= $this->section('header') ?>
<?= view('layouts/_inner_header', ['title' => $title ?? 'Settings']) ?>
<?= $this->endSection() ?>

<?= $this->section('content') ?>
<p class="page-lead">Personalize your experience &amp; learn the essentials to efficiently use the application to plan your work.</p>

<section class="settings-profile" aria-labelledby="profile-heading">
    <h2 id="profile-heading" class="settings-heading">Profile Information</h2>

    <form class="auth-form" method="post" action="<?= site_url('settings/profile') ?>">
        <?= csrf_field() ?>
        <?= view('profile/_fields', [
            'values' => $values ?? [],
            'errors' => $errors ?? [],
            'email'  => $email ?? '',
        ]) ?>

        <button class="btn-primary" type="submit">Save</button>
    </form>
</section>
<?= $this->endSection() ?>
