I have a simple output from controller to blade:
{{ $BanInfo->banlength }}
It shows minutes. How can i convert ONLY TO DAYS? And i need to use only in blade. Any suggestion? Thanks
I have a simple output from controller to blade:
{{ $BanInfo->banlength }}
It shows minutes. How can i convert ONLY TO DAYS? And i need to use only in blade. Any suggestion? Thanks
you simply can Division to 1440 to get days
{{ round($BanInfo->banlength / 1440) }}