?> <?php foreach ($characters as $i => $player) { ?> <tr> <td> <?php echo ++$i; ?> . <?php echo char_link($player->getName()); ?> <em class="desc">(Level <?php echo $player->getLevel() . ' ' . vocIdToName($player->getVocation()); ?> )</em> </td> <td><?php echo sexIdToName($player->getSex()); ?> </td> <td> <?php if ($player->isHided()) { ?> <?php if ($player->isOnline()) {
<?php } else { ?> <?php foreach (app('account')->characters() as $char) { ?> <tr> <td><a href="?subtopic=character&name=<?php echo urlencode(strtolower(e($char['name']))); ?> "><?php echo e($char['name']); ?> </a></td> <td><?php echo vocIdToName(e($char['vocation'])); ?> </td> <td><?php echo e($char['level']); ?> </td> <td><a href="#" class="btn btn-primary btn-xs">Edit</a></td> </tr> <?php } ?> <?php } ?> </tbody>
<label class="col-sm-3 control-label">Character name</label> <div class="col-sm-9"> <input type="text" name="character_name" class="form-control"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">Vocation</label> <div class="col-sm-9"> <?php foreach (config('character', 'newcharvocations') as $id) { ?> <label class="radio-inline"><input type="radio" value="<?php echo $id; ?> " name="character_voc"><?php echo vocIdToName($id); ?> </label> <?php } ?> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">Sex</label> <div class="col-sm-9"> <label class="radio-inline"><input type="radio" value="0" name="character_sex">Female</label> <label class="radio-inline"><input type="radio" value="1" name="character_sex">Male</label> </div> </div> <div class="form-group">
?> <?php echo char_link($character->getName()); ?> <?php } ?> </td> <td><?php echo $character->getLevel(); ?> </td> <td><?php echo vocIdToName($character->getVocation()); ?> </td> <td> <?php if ($character->isOnline()) { ?> <span class="online">Online</span> <?php } else { ?> Offline <?php } ?>