<?php echo $this->extend('template/admin/main'); ?>

<?php echo $this->section('content') ?>

    <?php echo $this->include('common/message') ?>

    <div class="card mb-4">
        <div class="card-body">

            <form action="<?php echo base_url(route_to('create-langstring')) ?>" id="lagsrtform" method="post" class="row g-3" accept-charset="utf-8" enctype="multipart/form-data">
                <?php echo $this->include('common/security') ?>
                <div class="col-12 col-md-6">
                    <label for="name" class=""><?php echo lang("Localize.language") . " " . lang("Localize.string") . " " . lang("Localize.name") ?> <abbr title="Required field">*</abbr></label>
                    <input type="text" id="name" name="name" value="<?php echo esc(old('name'))  ?>" class="form-control" placeholder="<?php echo lang("Localize.language") . " " . lang("Localize.string") . " " . lang("Localize.name") ?>" required />
                </div>

                <div class="col-12">
                    <button type="submit" class="btn btn-success"><?php echo lang("Localize.submit") ?></button>
                </div>
            </form>

            <div class="table-responsive mt-4">
                <table class="table display table-bordered table-striped table-hover basic" id="languageString">
                    <thead>
                        <tr>
                            <th scope="col">#</th>
                            <th scope="col"><?php echo lang("Localize.name") ?></th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php foreach ($languagestr as $kye =>  $value) : ?>
                            <tr>
                                <th scope="row"><?php echo $kye + 1; ?></th>
                                <td><?php echo $value->name; ?></td>
                            </tr>
                        <?php endforeach ?>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <?php echo $this->include('common/datatable_default_lang_change') ?>
<?php echo $this->endSection() ?>