<!-- Main Content -->
<div class="content">
  <div class="formcard">
        <?php if (!empty($error_message)): ?>
            <div class="alert alert-danger"><?= $error_message ?></div>
        <?php endif; ?>
        <form method="post">
			<input type="hidden" name="id" value="<?php echo $authority->id;?>">	

            <div class="form-group">
                <i class="fas fa-user-shield icon"></i>
                <input type="text" id="authority_name" name="authority_name" placeholder=" " value="<?php echo $authority->authority_name;?>" required>
                <label for="authority_name">Authority Name</label>
                <div class="hint">Enter the official authority name.</div>
                <?php echo form_error('authority_name', '<div class="error">', '</div>'); ?>
            </div>
            <div class="form-group">
                <i class="fas fa-tag icon"></i>
                <input type="text" id="alias_name" name="alias_name" placeholder=" "  value="<?php echo $authority->alias_name;?>" >
                <label for="alias">Alias</label>
                <div class="hint">A short alias for quick reference.</div>
            </div>

            <div class="col-md-12">
                <button class="btn btn-primary">Edit</button>
                <a class="btn btn-danger" href="<?= site_url('authority/index/'.$this->session->userdata('company_id')) ?>">Cancel</a>
            </div>
        </form>
    </div>
</div>