Remove empty spaces in show invoice view
This commit is contained in:
@ -4,6 +4,7 @@ namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\View\Factory as ViewFactory;
|
||||
|
||||
class Macro extends ServiceProvider
|
||||
{
|
||||
@ -26,6 +27,15 @@ class Macro extends ServiceProvider
|
||||
|
||||
return $string;
|
||||
});
|
||||
|
||||
ViewFactory::macro('hasStack', function (...$sections) {
|
||||
foreach ($sections as $section) {
|
||||
if (isset($this->pushes[$section]) || isset($this->prepends[$section])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user