background-color: #55ce63;
color: #fff;
content:<? {{__('trans.On')}} ?>;
padding-right: 14px
this code css in header of blade how to write laravel code in css to change
You can't use php or blade in your css file, but you can set a css variable in your .blade.php file as a style attribute:
style="--content-on: '{{ __('trans.On') }}';"
And use that variable in your css file:
content: var(--content-on);
content: '{{ __('trans.On') }}';. This will only work on a blade file.