Файл: resources/views/game/campaign/process.blade.php
Строк: 212
<?php
@extends('layouts.main')
@section('content')
<style>
.btn-games2 {
background: url(/images/btn-left2.jpg) no-repeat left
,url(/images/btn-right2.jpg) no-repeat right
,url(/images/btn-center2.jpg) repeat center;
color: #ede256;
width: 85%;
text-align: center;
padding-top: 5px;
padding-bottom: 10px;
padding-left: 55px;
padding-right: 55px;
text-shadow: 0 -1px 0 #131227, 0 -1px 0 #131227, 0 1px 0 #131227, 0 1px 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227;
font-size: 15px;
margin: 0;
margin-bottom: 4px;
border: 0;
}
.medim {
background: url(/images/bg-foot.jpg) no-repeat center;
padding: 5px;
border-radius: 5px;
word-wrap: break-word;
border: 1px solid #3d3b6e;
box-shadow: 0px 3px 5px 0px rgba(23,22,52,1);
-webkit-box-shadow: 0px 3px 5px 0px rgba(23,22,52,1);
-moz-box-shadow: 0px 3px 5px 0px rgba(23,22,52,1);
}
.boxins {
background: url(/images/campaign-1.png) no-repeat center;
color: #C1C0D4;
text-shadow: 0 -1px 0 #131227, 0 -1px 0 #131227, 0 1px 0 #131227, 0 1px 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227;
padding: 60px;
word-wrap: break-word;
margin-bottom: -15px;
margin-top: -14px;
}
.logo .damage {
color: red;
font-size: 15px;
font-weight: bold;
letter-spacing: 5px;
text-shadow: none;
text-shadow: #FF8432 1px 0px, #FF8432 1px 1px, #FF8432 0px 1px, #FF8432 -1px 1px, #FF8432 -1px 0px, #FF8432 -1px -1px, #FF8432 0px -1px, #FF8432 1px -1px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px, #FF8432 0 0 3px;
}
.boxiv {
background: url(/images/opp-battle.png) no-repeat center;
color: #C1C0D4;
text-shadow: 0 -1px 0 #131227, 0 -1px 0 #131227, 0 1px 0 #131227, 0 1px 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227;
padding: 70px;
word-wrap: break-word;
margin-bottom: 0px;
margin-top: 5px;
}
</style>
@if(Session::has('result'))
<center>
<div class="box">
<div class="media">
<div class="media-body">
<h4 class="media-heading">
{{Session::get('result')}}
</h4>
</div>
</div>
</div>
</center>
@php
Session::forget('result');
@endphp
@endif
<div class="box">
<div class="medim">
<center>
<div class="media-body">
Ранг кампании: {{ Auth::user()->campaign_rank }}<br>
Опыт: {{ Auth::user()->campaign_exp > $rank->exp ? $rank->exp : Auth::user()->campaign_exp }}/{{ $rank->exp }}<br>
{!! Auth::user()->campaign_exp >= $rank->exp ? '<br><a href="/campaign/up">Повысить ранг</a>' : ''!!}
</div>
</center>
</div>
<font color="white">
@if($ci->type == 'text' || $ci->type == 'text-with-reward')
<center>
<br>{{ $ci->text }}<br><br>
<a href="/campaign/next" class="btn btn-games2 btn-block">{{ $ci->button }}</a>
</center>
@endif
@if($ci->type == 'raid')
@if($cu->raid == 0)
<center><div class = "boxiv"></div>
<strong>Осталось разбойников: <big>{{ count((array) $cu->enemies_left)-1 }}</big></strong><br><br>
<a href="/campaign/raid" class="btn btn-games2 btn-block">Рейд (1 час)</a>
</center><br>
@else
<center>
@if($cu->cooldown > time())
<div class="boxins">
<span class="damage">
<br><big>Вы в рейде</big><br>
<small> {{ Services::timer($cu->cooldown-time()) }}</small><br><br>
</span>
</div>
@else<br>
<big>Вы обнаружили <strong><font color = "#ff423a">{{ $cu->enemy != 7 ? 'разбойника' : 'ученика Властера' }}</font></strong></big><br>
<div class = "boxiv"></div>
<div class="box">
<a href="/campaign/start/battle" class="btn btn-games2 btn-block">Вступить в схватку</a>
</div>
@endif
</center>
@endif
@endif
@if($ci->type == 'village')
<center>
Найденный эйронит: {{ $cu->count }} из 160<br>
@if($cu->find == 1 && $cu->cooldown >= time())
<br><img src="images/campaign-two-location.png" width="100%" alt="">
<br> <br>Идёт поиск деревни<br>
Поиск завершится через {{ Services::timer($cu->cooldown-time()) }}<br><br>
@elseif($cu->find == 1 && $cu->cooldown < time())
@if($cu->battle == 0)
@if($ci->villages[$cu->village]['attack'] > 0)
<br> <br> Найдена обитаемая деревня<br> Вы можете напасть на неё, но знайте, будет намного сложнее с ней справиться <br>
<a href="/campaign/startAttackVillage" class="btn btn-games2 btn-block">Напасть</a>
<a href="/campaign/leaveVillage" class="btn btn-games2 btn-block">Обойти деревню</a>
@else
<img src="images/not-peoples.png" width="100%" alt="">
<big>Найдена пустая деревня</big><br> <br>
<a href="/campaign/startAttackVillage" class="btn btn-games2 btn-block">Напасть</a>
@endif
@else
<br>
<big><strong><font color="#FF8C00">Защита деревни <img src="/images/defender-user.png" width="20" height="20" alt=""> {{ $cu->villageHealth }}</font></strong></big><br>
<center><img src="/images/vs.png" width="50px" alt="*"></center>
<big><font color="#27ab2f"><strong>Мое здоровье <img src="/images/hp-user.png" width="20" height="20" alt=""> {{ $cu->myHealth }}</font>
</strong>
</big><br><br>
<div class="medim">
<div class="media-body">
{{--Мой урон <img src="/images/str-user.png" width="20" height="20" alt=""> {{ $cu->myAttack }} --}}
Ударов осталось: <img src="/images/str-user.png" width="20" height="20" alt=""> {{ $cu->attacks }}
</div></div><br>
@if($cu->attacks > 0)
<a href="/campaign/attackVillage" class="btn btn-games2 btn-block">Атака картами</a>
@endif
@endif
@else
<br><big>Поиск деревни ещё не начат</big><br><br>
<a href="/campaign/findVillage" class="btn btn-games2 btn-block">Начать поиск деревни</a>
@endif
</center>
@endif
@if($ci->type == 'opposition')
<center>
@if($cu->find == 0 && $cu->cooldown >= time())
<br><img src="images/campaign-two-location.png" width="100%" alt="">
<br> <br><big>Вы в пути</big><br>
До завершения {{ Services::timer($cu->cooldown-time()) }}<br><br>
@elseif($cu->find == 1 && $cu->cooldown < time())
@if($cu->battle == 0)
<br> <big>Вы у деревни</big><br><br>
<a href="/campaign/startOpposition" class="btn btn-games2 btn-block">Войти в деревню</a>
@else
@if($cu->destruct_cooldown >= time())
<br><big>Идёт разрушение защитной стены</big><br>
До конца: {{ Services::timer($cu->destruct_cooldown-time()) }}<br><br>
<a href="?" class="btn btn-games2 btn-block">Обновить</a>
@else
<div style="position:relative ; left:0px; top:70px;">
<center> <small><font color = "#ff423a">{{ $cu->enemyHealth }}</font></small></center>
<h3><font color = "#ff423a">{{ (5-$cu->enemy) }}</font></h3>
</div>
<img src="/images/mag.png" title="количество врагоы" alt="png" width="30%" /><br><br>
<center>Моё здоровье: {{ $cu->myHealth }}</center><br>
<a href="/campaign/attackEnemy" class="btn btn-games2 btn-block">Атаковать врага</a>
@endif
@endif
@endif
</center>
@endif
</font>
<center>
<div class = "menu">
<a href = "/"> На главную </a>
</div>
</center>
</div>
@endsection
?>