app/Http/Presenters/WorkOrder/WorkOrderPriorityPresenter.php
public function table(Priority $priority)
    {
        return $this->table->of('work-orders.priorities', function (TableGrid $table) use ($priority) {
            $table->with($priority);

            $table->column('priority', function (Column $column) {
                $column->value = function (Priority $priority) {
                    return link_to_route('maintenance.work-orders.priorities.edit', $priority->getLabel(), [$priority->getKey()]);
                };
            });

            $table->column('created_at');

            $table->column('created_by', function (Column $column) {
                $column->value = function (Priority $priority) {
                    if ($priority->user instanceof User) {
                        return $priority->user->getRecipientName();
                    } else {
                        return HTML::create('em', 'None');
                    }
                };
            });
        });
    }
public function table(Priority $priority)
    {
        return $this->table->of('work-orders.priorities', function (TableGrid $table) use ($priority) {
            $table->with($priority);

            $table->column('priority', function (Column $column) {
                $column->value = function (Priority $priority) {
                    return link_to_route('maintenance.work-orders.priorities.edit', $priority->getLabel(), [$priority->getKey()]);
                };
            });

            $table->column('created_at');

            $table->column('created_by', function (Column $column) {
                $column->value = function (Priority $priority) {
                    if ($priority->user instanceof User) {
                        return $priority->user->getRecipientName();
                    } else {
                        return HTML::create('em', 'None');
                    }
                };
            });
        });
    }
Returns a new table of all priorities.

@param Priority $priority

@return \Orchestra\Contracts\Html\Builder