<?php $__env->startSection('meta-content'); ?>
<title><?php echo Lang::get('words.home-settings').' - '.Lang::get('words.home'); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
	<div class="row">
		<div class="col-xs-12">
			<ol class="breadcrumb">
				<li><a href="<?php echo URL::to('admin'); ?>"><?php echo Lang::get('words.admin'); ?></a></li>
				<li class="active"><?php echo Lang::get('words.home'); ?></li>
			</ol>
		</div>
	</div>
	<div class="row">
		<form method="post" action="<?php echo URL::to('user/admin/home'); ?>" accept-charset="UTF-8">
	        <div class="form-group">
	            <label for="max-top" class="col-sm-3 control-label padding0"><?php echo Lang::get('words.genres_country'); ?>: </label>
	            <div class="col-sm-9 padding0">
	                <select name="country_code" class="form-control">
	                    <option <?php if($settings->country_code == "al"): ?> selected="selected" <?php endif; ?> value="al">Albania</option>
	                    <option <?php if($settings->country_code == "cz"): ?> selected="selected" <?php endif; ?> value="cz">Czech Republic</option>
	                    <option <?php if($settings->country_code == "ua"): ?> selected="selected" <?php endif; ?> value="ua">Ukraine</option>
	                    <option <?php if($settings->country_code == "dz"): ?> selected="selected" <?php endif; ?> value="dz">Algeria</option>
	                    <option <?php if($settings->country_code == "ao"): ?> selected="selected" <?php endif; ?> value="ao">Angola</option>
	                    <option <?php if($settings->country_code == "ai"): ?> selected="selected" <?php endif; ?> value="ai">Anguilla</option>
	                    <option <?php if($settings->country_code == "ag"): ?> selected="selected" <?php endif; ?> value="ag">Antigua and Barbuda</option>
	                    <option <?php if($settings->country_code == "ar"): ?> selected="selected" <?php endif; ?> value="ar">Argentina</option>
	                    <option <?php if($settings->country_code == "am"): ?> selected="selected" <?php endif; ?> value="am">Armenia</option>
	                    <option <?php if($settings->country_code == "au"): ?> selected="selected" <?php endif; ?> value="au">Australia</option>
	                    <option <?php if($settings->country_code == "az"): ?> selected="selected" <?php endif; ?> value="az">Azerbaijan</option>
	                    <option <?php if($settings->country_code == "bs"): ?> selected="selected" <?php endif; ?> value="bs">Bahamas</option>
	                    <option <?php if($settings->country_code == "bh"): ?> selected="selected" <?php endif; ?> value="bh">Bahrain</option>
	                    <option <?php if($settings->country_code == "bb"): ?> selected="selected" <?php endif; ?> value="bb">Barbados</option>
	                    <option <?php if($settings->country_code == "by"): ?> selected="selected" <?php endif; ?> value="by">Belarus</option>
	                    <option <?php if($settings->country_code == "be"): ?> selected="selected" <?php endif; ?> value="be">Belgium</option>
	                    <option <?php if($settings->country_code == "bz"): ?> selected="selected" <?php endif; ?> value="bz">Belize</option>
	                    <option <?php if($settings->country_code == "bj"): ?> selected="selected" <?php endif; ?> value="bj">Benin</option>
	                    <option <?php if($settings->country_code == "bm"): ?> selected="selected" <?php endif; ?> value="bm">Bermuda</option>
	                    <option <?php if($settings->country_code == "bt"): ?> selected="selected" <?php endif; ?> value="bt">Bhutan</option>
	                    <option <?php if($settings->country_code == "bo"): ?> selected="selected" <?php endif; ?> value="bo">Bolivia, Plurinational State of</option>
	                    <option <?php if($settings->country_code == "bw"): ?> selected="selected" <?php endif; ?> value="bw">Botswana</option>
	                    <option <?php if($settings->country_code == "br"): ?> selected="selected" <?php endif; ?> value="br">Brazil</option>
	                    <option <?php if($settings->country_code == "bn"): ?> selected="selected" <?php endif; ?> value="bn">Brunei Darussalam</option>
	                    <option <?php if($settings->country_code == "bf"): ?> selected="selected" <?php endif; ?> value="bf">Burkina Faso</option>
	                    <option <?php if($settings->country_code == "kh"): ?> selected="selected" <?php endif; ?> value="kh">Cambodia</option>
	                    <option <?php if($settings->country_code == "ca"): ?> selected="selected" <?php endif; ?> value="ca">Canada</option>
	                    <option <?php if($settings->country_code == "cv"): ?> selected="selected" <?php endif; ?> value="cv">Cape Verde</option>
	                    <option <?php if($settings->country_code == "ky"): ?> selected="selected" <?php endif; ?> value="ky">Cayman Islands</option>
	                    <option <?php if($settings->country_code == "td"): ?> selected="selected" <?php endif; ?> value="td">Chad</option>
	                    <option <?php if($settings->country_code == "cl"): ?> selected="selected" <?php endif; ?> value="cl">Chile</option>
	                    <option <?php if($settings->country_code == "co"): ?> selected="selected" <?php endif; ?> value="co">Colombia</option>
	                    <option <?php if($settings->country_code == "cg"): ?> selected="selected" <?php endif; ?> value="cg">Congo</option>
	                    <option <?php if($settings->country_code == "cr"): ?> selected="selected" <?php endif; ?> value="cr">Costa Rica</option>
	                    <option <?php if($settings->country_code == "cy"): ?> selected="selected" <?php endif; ?> value="cy">Cyprus</option>
	                    <option <?php if($settings->country_code == "dk"): ?> selected="selected" <?php endif; ?> value="dk">Denmark</option>
	                    <option <?php if($settings->country_code == "de"): ?> selected="selected" <?php endif; ?> value="de">Germany</option>
	                    <option <?php if($settings->country_code == "dm"): ?> selected="selected" <?php endif; ?> value="dm">Dominica</option>
	                    <option <?php if($settings->country_code == "ec"): ?> selected="selected" <?php endif; ?> value="ec">Ecuador</option>
	                    <option <?php if($settings->country_code == "ee"): ?> selected="selected" <?php endif; ?> value="ee">Estonia</option>
	                    <option <?php if($settings->country_code == "eg"): ?> selected="selected" <?php endif; ?> value="eg">Egypt</option>
	                    <option <?php if($settings->country_code == "sv"): ?> selected="selected" <?php endif; ?> value="sv">El Salvador</option>
	                    <option <?php if($settings->country_code == "es"): ?> selected="selected" <?php endif; ?> value="es">Spain</option>
	                    <option <?php if($settings->country_code == "fj"): ?> selected="selected" <?php endif; ?> value="fj">Fiji</option>
	                    <option <?php if($settings->country_code == "fr"): ?> selected="selected" <?php endif; ?> value="fr">France</option>
	                    <option <?php if($settings->country_code == "gm"): ?> selected="selected" <?php endif; ?> value="gm">Gambia</option>
	                    <option <?php if($settings->country_code == "gh"): ?> selected="selected" <?php endif; ?> value="gh">Ghana</option>
	                    <option <?php if($settings->country_code == "gr"): ?> selected="selected" <?php endif; ?> value="gr">Greece</option>
	                    <option <?php if($settings->country_code == "gd"): ?> selected="selected" <?php endif; ?> value="gd">Grenada</option>
	                    <option <?php if($settings->country_code == "gt"): ?> selected="selected" <?php endif; ?> value="gt">Guatemala</option>
	                    <option <?php if($settings->country_code == "gw"): ?> selected="selected" <?php endif; ?> value="gw">Guinea-Bissau</option>
	                    <option <?php if($settings->country_code == "gy"): ?> selected="selected" <?php endif; ?> value="gy">Guyana</option>
	                    <option <?php if($settings->country_code == "hn"): ?> selected="selected" <?php endif; ?> value="hn">Honduras</option>
	                    <option <?php if($settings->country_code == "hk"): ?> selected="selected" <?php endif; ?> value="hk">Hong Kong</option>
	                    <option <?php if($settings->country_code == "hr"): ?> selected="selected" <?php endif; ?> value="hr">Croatia</option>
	                    <option <?php if($settings->country_code == "is"): ?> selected="selected" <?php endif; ?> value="is">Iceland</option>
	                    <option <?php if($settings->country_code == "in"): ?> selected="selected" <?php endif; ?> value="in">India</option>
	                    <option <?php if($settings->country_code == "id"): ?> selected="selected" <?php endif; ?> value="id">Indonesia</option>
	                    <option <?php if($settings->country_code == "ie"): ?> selected="selected" <?php endif; ?> value="ie">Ireland</option>
	                    <option <?php if($settings->country_code == "il"): ?> selected="selected" <?php endif; ?> value="il">Israel</option>
	                    <option <?php if($settings->country_code == "it"): ?> selected="selected" <?php endif; ?> value="it">Italy</option>
	                    <option <?php if($settings->country_code == "jm"): ?> selected="selected" <?php endif; ?> value="jm">Jamaica</option>
	                    <option <?php if($settings->country_code == "jo"): ?> selected="selected" <?php endif; ?> value="jo">Jordan</option>
	                    <option <?php if($settings->country_code == "kz"): ?> selected="selected" <?php endif; ?> value="kz">Kazakhstan</option>
	                    <option <?php if($settings->country_code == "ke"): ?> selected="selected" <?php endif; ?> value="ke">Kenya</option>
	                    <option <?php if($settings->country_code == "kw"): ?> selected="selected" <?php endif; ?> value="kw">Kuwait</option>
	                    <option <?php if($settings->country_code == "kg"): ?> selected="selected" <?php endif; ?> value="kg">Kyrgyzstan</option>
	                    <option <?php if($settings->country_code == "la"): ?> selected="selected" <?php endif; ?> value="la">Lao People's Democratic Republic</option>
	                    <option <?php if($settings->country_code == "lv"): ?> selected="selected" <?php endif; ?> value="lv">Latvia</option>
	                    <option <?php if($settings->country_code == "lb"): ?> selected="selected" <?php endif; ?> value="lb">Lebanon</option>
	                    <option <?php if($settings->country_code == "lr"): ?> selected="selected" <?php endif; ?> value="lr">Liberia</option>
	                    <option <?php if($settings->country_code == "li"): ?> selected="selected" <?php endif; ?> value="li">Liechtenstein</option>
	                    <option <?php if($settings->country_code == "lt"): ?> selected="selected" <?php endif; ?> value="lt">Lithuania</option>
	                    <option <?php if($settings->country_code == "lu"): ?> selected="selected" <?php endif; ?> value="lu">Luxembourg</option>
	                    <option <?php if($settings->country_code == "mo"): ?> selected="selected" <?php endif; ?> value="mo">Macao</option>
	                    <option <?php if($settings->country_code == "mk"): ?> selected="selected" <?php endif; ?> value="mk">Macedonia, the former Yugoslav Republic of</option>
	                    <option <?php if($settings->country_code == "mg"): ?> selected="selected" <?php endif; ?> value="mg">Madagascar</option>
	                    <option <?php if($settings->country_code == "hu"): ?> selected="selected" <?php endif; ?> value="hu">Hungary</option>
	                    <option <?php if($settings->country_code == "mw"): ?> selected="selected" <?php endif; ?> value="mw">Malawi</option>
	                    <option <?php if($settings->country_code == "my"): ?> selected="selected" <?php endif; ?> value="my">Malaysia</option>
	                    <option <?php if($settings->country_code == "ml"): ?> selected="selected" <?php endif; ?> value="ml">Mali</option>
	                    <option <?php if($settings->country_code == "mt"): ?> selected="selected" <?php endif; ?> value="mt">Malta</option>
	                    <option <?php if($settings->country_code == "mr"): ?> selected="selected" <?php endif; ?> value="mr">Mauritania</option>
	                    <option <?php if($settings->country_code == "mu"): ?> selected="selected" <?php endif; ?> value="mu">Mauritius</option>
	                    <option <?php if($settings->country_code == "mx"): ?> selected="selected" <?php endif; ?> value="mx">Mexico</option>
	                    <option <?php if($settings->country_code == "fm"): ?> selected="selected" <?php endif; ?> value="fm">Micronesia, Federated States of</option>
	                    <option <?php if($settings->country_code == "md"): ?> selected="selected" <?php endif; ?> value="md">Moldova, Republic of</option>
	                    <option <?php if($settings->country_code == "mn"): ?> selected="selected" <?php endif; ?> value="mn">Mongolia</option>
	                    <option <?php if($settings->country_code == "me"): ?> selected="selected" <?php endif; ?> value="me">Montenegro</option>
	                    <option <?php if($settings->country_code == "ms"): ?> selected="selected" <?php endif; ?> value="ms">Montserrat</option>
	                    <option <?php if($settings->country_code == "mz"): ?> selected="selected" <?php endif; ?> value="mz">Mozambique</option>
	                    <option <?php if($settings->country_code == "na"): ?> selected="selected" <?php endif; ?> value="na">Namibia</option>
	                    <option <?php if($settings->country_code == "nl"): ?> selected="selected" <?php endif; ?> value="nl">Netherlands</option>
	                    <option <?php if($settings->country_code == "np"): ?> selected="selected" <?php endif; ?> value="np">Nepal</option>
	                    <option <?php if($settings->country_code == "nz"): ?> selected="selected" <?php endif; ?> value="nz">New Zealand</option>
	                    <option <?php if($settings->country_code == "ni"): ?> selected="selected" <?php endif; ?> value="ni">Nicaragua</option>
	                    <option <?php if($settings->country_code == "ne"): ?> selected="selected" <?php endif; ?> value="ne">Niger</option>
	                    <option <?php if($settings->country_code == "ng"): ?> selected="selected" <?php endif; ?> value="ng">Nigeria</option>
	                    <option <?php if($settings->country_code == "no"): ?> selected="selected" <?php endif; ?> value="no">Norway</option>
	                    <option <?php if($settings->country_code == "om"): ?> selected="selected" <?php endif; ?> value="om">Oman</option>
	                    <option <?php if($settings->country_code == "at"): ?> selected="selected" <?php endif; ?> value="at">Austria</option>
	                    <option <?php if($settings->country_code == "pk"): ?> selected="selected" <?php endif; ?> value="pk">Pakistan</option>
	                    <option <?php if($settings->country_code == "pw"): ?> selected="selected" <?php endif; ?> value="pw">Palau</option>
	                    <option <?php if($settings->country_code == "pa"): ?> selected="selected" <?php endif; ?> value="pa">Panama</option>
	                    <option <?php if($settings->country_code == "pg"): ?> selected="selected" <?php endif; ?> value="pg">Papua New Guinea</option>
	                    <option <?php if($settings->country_code == "py"): ?> selected="selected" <?php endif; ?> value="py">Paraguay</option>
	                    <option <?php if($settings->country_code == "pe"): ?> selected="selected" <?php endif; ?> value="pe">Peru</option>
	                    <option <?php if($settings->country_code == "ph"): ?> selected="selected" <?php endif; ?> value="ph">Philippines</option>
	                    <option <?php if($settings->country_code == "pl"): ?> selected="selected" <?php endif; ?> value="pl">Poland</option>
	                    <option <?php if($settings->country_code == "pt"): ?> selected="selected" <?php endif; ?> value="pt">Portugal</option>
	                    <option <?php if($settings->country_code == "do"): ?> selected="selected" <?php endif; ?> value="do">Dominican Republic</option>
	                    <option <?php if($settings->country_code == "ro"): ?> selected="selected" <?php endif; ?> value="ro">Romania</option>
	                    <option <?php if($settings->country_code == "kn"): ?> selected="selected" <?php endif; ?> value="kn">Saint Kitts and Nevis</option>
	                    <option <?php if($settings->country_code == "lc"): ?> selected="selected" <?php endif; ?> value="lc">Saint Lucia</option>
	                    <option <?php if($settings->country_code == "vc"): ?> selected="selected" <?php endif; ?> value="vc">Saint Vincent and the Grenadines</option>
	                    <option <?php if($settings->country_code == "sa"): ?> selected="selected" <?php endif; ?> value="sa">Saudi Arabia</option>
	                    <option <?php if($settings->country_code == "st"): ?> selected="selected" <?php endif; ?> value="st">Sao Tome and Principe</option>
	                    <option <?php if($settings->country_code == "ch"): ?> selected="selected" <?php endif; ?> value="ch">Switzerland</option>
	                    <option <?php if($settings->country_code == "sn"): ?> selected="selected" <?php endif; ?> value="sn">Senegal</option>
	                    <option <?php if($settings->country_code == "sc"): ?> selected="selected" <?php endif; ?> value="sc">Seychelles</option>
	                    <option <?php if($settings->country_code == "sl"): ?> selected="selected" <?php endif; ?> value="sl">Sierra Leone</option>
	                    <option <?php if($settings->country_code == "sg"): ?> selected="selected" <?php endif; ?> value="sg">Singapore</option>
	                    <option <?php if($settings->country_code == "sk"): ?> selected="selected" <?php endif; ?> value="sk">Slovakia</option>
	                    <option <?php if($settings->country_code == "si"): ?> selected="selected" <?php endif; ?> value="si">Slovenia</option>
	                    <option <?php if($settings->country_code == "sb"): ?> selected="selected" <?php endif; ?> value="sb">Solomon Islands</option>
	                    <option <?php if($settings->country_code == "za"): ?> selected="selected" <?php endif; ?> value="za">South Africa</option>
	                    <option <?php if($settings->country_code == "lk"): ?> selected="selected" <?php endif; ?> value="lk">Sri Lanka</option>
	                    <option <?php if($settings->country_code == "fi"): ?> selected="selected" <?php endif; ?> value="fi">Finland</option>
	                    <option <?php if($settings->country_code == "sr"): ?> selected="selected" <?php endif; ?> value="sr">Suriname</option>
	                    <option <?php if($settings->country_code == "se"): ?> selected="selected" <?php endif; ?> value="se">Sweden</option>
	                    <option <?php if($settings->country_code == "sz"): ?> selected="selected" <?php endif; ?> value="sz">Swaziland</option>
	                    <option <?php if($settings->country_code == "tj"): ?> selected="selected" <?php endif; ?> value="tj">Tajikistan</option>
	                    <option <?php if($settings->country_code == "tz"): ?> selected="selected" <?php endif; ?> value="tz">Tanzania, United Republic of</option>
	                    <option <?php if($settings->country_code == "th"): ?> selected="selected" <?php endif; ?> value="th">Thailand</option>
	                    <option <?php if($settings->country_code == "tt"): ?> selected="selected" <?php endif; ?> value="tt">Trinidad and Tobago</option>
	                    <option <?php if($settings->country_code == "tn"): ?> selected="selected" <?php endif; ?> value="tn">Tunisia</option>
	                    <option <?php if($settings->country_code == "tm"): ?> selected="selected" <?php endif; ?> value="tm">Turkmenistan</option>
	                    <option <?php if($settings->country_code == "tc"): ?> selected="selected" <?php endif; ?> value="tc">Turks and Caicos Islands</option>
	                    <option <?php if($settings->country_code == "tr"): ?> selected="selected" <?php endif; ?> value="tr">Turkey</option>
	                    <option <?php if($settings->country_code == "gb"): ?> selected="selected" <?php endif; ?> value="gb">United Kingdom</option>
	                    <option <?php if($settings->country_code == "us"): ?> selected="selected" <?php endif; ?> value="us">United States</option>
	                    <option <?php if($settings->country_code == "ug"): ?> selected="selected" <?php endif; ?> value="ug">Uganda</option>
	                    <option <?php if($settings->country_code == "qa"): ?> selected="selected" <?php endif; ?> value="qa">Qatar</option>
	                    <option <?php if($settings->country_code == "ae"): ?> selected="selected" <?php endif; ?> value="ae">United Arab Emirates</option>
	                    <option <?php if($settings->country_code == "uy"): ?> selected="selected" <?php endif; ?> value="uy">Uruguay</option>
	                    <option <?php if($settings->country_code == "uz"): ?> selected="selected" <?php endif; ?> value="uz">Uzbekistan</option>
	                    <option <?php if($settings->country_code == "ve"): ?> selected="selected" <?php endif; ?> value="ve">Venezuela, Bolivarian Republic of</option>
	                    <option <?php if($settings->country_code == "vn"): ?> selected="selected" <?php endif; ?> value="vn">Viet Nam</option>
	                    <option <?php if($settings->country_code == "vg"): ?> selected="selected" <?php endif; ?> value="vg">Virgin Islands, British</option>
	                    <option <?php if($settings->country_code == "ye"): ?> selected="selected" <?php endif; ?> value="ye">Yemen</option>
	                    <option <?php if($settings->country_code == "zw"): ?> selected="selected" <?php endif; ?> value="zw">Zimbabwe</option>
	                    <option <?php if($settings->country_code == "bg"): ?> selected="selected" <?php endif; ?> value="bg">Bulgaria</option>
	                    <option <?php if($settings->country_code == "ru"): ?> selected="selected" <?php endif; ?> value="ru">Russian Federation</option>
	                    <option <?php if($settings->country_code == "kr"): ?> selected="selected" <?php endif; ?> value="kr">Korea, Republic of</option>
	                    <option <?php if($settings->country_code == "cn"): ?> selected="selected" <?php endif; ?> value="cn">China</option>
	                    <option <?php if($settings->country_code == "tw"): ?> selected="selected" <?php endif; ?> value="tw">Taiwan, Province of China</option>
	                    <option <?php if($settings->country_code == "jp"): ?> selected="selected" <?php endif; ?> value="jp">Japan</option>

	                </select>
	            </div>
	            <div class="clearfix"></div>
	        </div>
	        <div class="well well-sm text-center"><?php echo Lang::get('words.sort_title'); ?></div>
	        <ul id="sortable">
	            <?php foreach($genres as $genre): ?>
	                <li id="<?php echo $genre->id; ?>" class="ui-state-default"><?php echo Lang::get('words.'.$genre->name); ?> <span title="Enable/Disable genre" class="toggleGenre fa <?php if($genre->is_visible): ?> fa-eye <?php else: ?> fa-eye-slash <?php endif; ?>"></span></li>
	            <?php endforeach; ?>
	        </ul>
	        <?php foreach($genres as $genre): ?>
	            <input type="hidden" name="<?php echo $genre->id; ?>" value="<?php echo $genre->order_id; ?>">
	        <?php endforeach; ?>

	        <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
	        <br>
	        <button type="submit" class="btn btn-success btn-block"><i class="fa fa-home"></i> <?php echo Lang::get('words.update-settings'); ?></button>
	    </form>
	</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('admin.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>