如何更改背包仪表板中行或列的颜色?
how to change the color of row or column in backpack dashboard?
This is my client admin panel
What i want to do know when the expire month comes that column will become red automatically otherwise it stay green.
在您看来
@php
$currentdate=strtotime(date('Y/m/d'));
$exp_date=strtotime($expiry_date);
if($currentdate > $exp_date)
{ //not expired
$color="#539E05";
}
else
{
//expired
$color="#EA2C12";
}
@endphp
<td style="color: {{$color}}">{{$expiry_date}}</td>
我不知道你的 html 结构是什么样的,所以我假设 span 标签中存在到期日期
This is my client admin panel
What i want to do know when the expire month comes that column will become red automatically otherwise it stay green.
在您看来
@php
$currentdate=strtotime(date('Y/m/d'));
$exp_date=strtotime($expiry_date);
if($currentdate > $exp_date)
{ //not expired
$color="#539E05";
}
else
{
//expired
$color="#EA2C12";
}
@endphp
<td style="color: {{$color}}">{{$expiry_date}}</td>
我不知道你的 html 结构是什么样的,所以我假设 span 标签中存在到期日期