1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

If the lease agreement has been expired then Badges show red

Discussão em 'Outras Linguagens' iniciado por software dev, Novembro 3, 2024 às 21:12.

  1. software dev

    software dev Guest

    The house leased for 2 years 5 month after completion of leased agreement badge show red after 2 years 5 months

    @if ($pd->years== 0 && $pd->months==0)
    <td>--</td>

    @elseif ({{ \Carbon\Carbon::parse($pd->rent_date)->addYear($pd->rent_in_years)->addMonth($pd->rent_in_months)->format("Y-m-d")->
    lt (Carbon\Carbon::now()) }} )

    <td>
    <span class="badge bg-danger">
    {{ \Carbon\Carbon::parse($pd->rent_date)->addYear($pd->rent_in_years)->addMonth($pd->rent_in_months)->format("Y-m-d") }}
    </span>
    </td>


    @else
    <td>

    <span class="badge bg-success">
    {{ \Carbon\Carbon::parse($pd->rent_date)->addYear($pd->rent_in_years)->addMonth($pd->rent_in_months)->format("Y-m-d") }}
    </span>

    </td>
    @endif

    Continue reading...

Compartilhe esta Página