Last active
November 22, 2021 22:59
-
-
Save NandoKstroNet/5906f56b3d9ab8c8e035e51b22179f2b to your computer and use it in GitHub Desktop.
Exibição das somas das saidas e entradas e balanço da nossa dashboard. Curso Livewire na Prática em http://codeexperts.com.br/curso/livewire-na-pratica
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="w-full flex justify-between p-5"> | |
<div class="w-1/4 h-20 p-15 bg-green-600 text-white text-2xl font-extrabold flex flex-col justify-center items-center rounded"> | |
<strong>Entrada</strong><br> | |
R$ {{isset($expenseCount[1]) ? number_format($expenseCount[1], 2, ',', '.') : 0 }} | |
</div> | |
<div class="w-1/4 h-20 p-15 bg-red-600 text-white text-2xl font-extrabold flex flex-col justify-center items-center rounded"> | |
<strong>Saída</strong><br> | |
R$ {{isset($expenseCount[2]) ? number_format($expenseCount[2], 2, ',', '.') : 0 }} | |
</div> | |
<div class="w-1/4 p-15 justify-center items-center h-20 text-white text-2xl font-extrabold flex flex-col justify-center items-center rounded | |
@if($showBalance > 0) | |
bg-green-600 | |
@else | |
bg-red-600 | |
@endif | |
"> | |
<strong>Saldo</strong><br> | |
R$ {{number_format($showBalance, 2, ',', '.')}} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment