protected function itemsHeader() { $this->image->rectangle(0, 1150, $this->image->getWidth(), 1265, function (AbstractShape $shape) { $shape->background($this->template->getColorEven()); }); $this->image->polygon([$this->image->getWidth(), 1150, $this->image->getWidth(), 1265, 2000, 1265, 2150, 1150], function (AbstractShape $shape) { $shape->background($this->template->getPrimaryColor()); }); $this->image->rectangle(0, 1265, $this->image->getWidth(), 1270, function (AbstractShape $shape) { $shape->background($this->template->getPrimaryColor()); }); $this->image->text(Strings::upper($this->translate('item')), 165, 1205, function (Font $font) { $font->color($this->template->getPrimaryColor()); $font->file($this->template->getFontBold()); $font->valign('center'); $font->align('center'); $font->size(37); }); $this->image->text(Strings::upper($this->translate('count')), 1250, 1205, function (Font $font) { $font->color($this->template->getPrimaryColor()); $font->file($this->template->getFontBold()); $font->valign('center'); $font->align('center'); $font->size(37); }); $this->image->text(Strings::upper($this->translate('pricePerItem')), 1650, 1205, function (Font $font) { $font->color($this->template->getPrimaryColor()); $font->file($this->template->getFontBold()); $font->valign('center'); $font->align('center'); $font->size(37); }); $this->image->text(Strings::upper($this->translate('total')), 2250, 1205, function (Font $font) { $font->color($this->template->getColorOdd()); $font->file($this->template->getFontBold()); $font->valign('center'); $font->align('center'); $font->size(37); }); }