Файл: resources/views/game/campaign/battle.blade.php
Строк: 68
<?php
@extends('layouts.main')
@section('content')
<style>
.row {
margin-right: 0px;
margin-left: 0px;
width: 70%;
}
.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: 40%;
text-align: center;
padding-top: 5px;
padding-bottom: 10px;
padding-left: 45px;
padding-right: 45px;
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;
}
</style>
<font color="white">
<center>
<div style="position:relative ; left:0px; top:50px;">
<font size = "4px"> {{ $ct->health }}</font>
</div>
<img src="/images/cards/{{ $c1->image }}.png" width="65px">
<br><br>
<center><big>Ваши карты</big></center><br>
<div class="row">
@if($ct->myHealth1 > 0)
<div class="col-xs-{{ $ct->myHealth2 > 0 ? 6 : 12 }}">
<img src="/images/cards/{{ $c2->getCardInfo->image }}.png" width="65px"><br>
HP: {{ $ct->myHealth1 }}/{{ round($c2->getCardInfo->health+Services::getUpgradeBonus($c2->getCardInfo->health, $c2->upgrade_level)) }}<br>
</div>
@endif
@if($ct->myHealth2 > 0)
<div class="col-xs-{{ $ct->myHealth1 > 0 ? 6 : 12 }}">
<img src="/images/cards/{{ $c3->getCardInfo->image }}.png" width="65px"><br>
HP: {{ $ct->myHealth2 }}/{{ round($c3->getCardInfo->health+Services::getUpgradeBonus($c3->getCardInfo->health, $c3->upgrade_level)) }}<br>
</div>
@endif
</div><br>
<font color="black">
@if($ct->myHealth1 > 0)
@if($ct->cooldown1 <= time())
<a href="/campaign/battle/attack/1" class="btn-games2">Удар</a>
@else
<a href="?" class="btn-games2">{{ Services::timer($ct->cooldown1-time()) }}</a>
@endif
@endif
@if($ct->myHealth2 > 0)
@if($ct->cooldown2 <= time())
<a href="/campaign/battle/attack/2" class="btn-games2">Удар</a>
@else
<a href="?" class="btn-games2">{{ Services::timer($ct->cooldown2-time()) }}</a>
@endif
@endif
</font>
</center>
</font>
@endsection
?>