Category : money-format

How do I construct a laravel blade directive to show a number in money format with the currency symbol attached to it? I have tried using number_format() Blade::directive(‘money’, function ($value) { return "<?php echo config(‘app.currency’) . number_format($value, 2); ?>"; }); Is there a way to display the currency symbol, based on the app locale, to ..

Read more

I have the following code to read data from database, however I don’t know how to format the amount money column (at this column: Giá trị)? hope you guys help me, thank you very much! Code php here: <div class="table-responsive"> <table id="mytable" class="table table-bordred table-striped"> <thead> <th>#</th> <th>Số HĐ</th> <th>Nội dung hợp đồng</th> <th>Công trình</th> ..

Read more