app/Http/Presenters/WorkOrder/WorkOrderSessionPresenter.php
public function table(WorkOrder $workOrder)
    {
        $sessions = $workOrder->sessions();

        return $this->table->of('work-orders.sessions', function (TableGrid $table) use ($sessions) {
            $table->with($sessions)->paginate($this->perPage);

            $table->attributes([
                'class' => 'table table-hover table-striped',
            ]);

            $table->column('user', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->user->fullname;
                };
            });

            $table->column('Hours', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->getHours();
                };
            });

            $table->column('in');

            $table->column('out', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->getOutLabel();
                };
            });
        });
    }
public function table(WorkOrder $workOrder)
    {
        $sessions = $workOrder->sessions();

        return $this->table->of('work-orders.sessions', function (TableGrid $table) use ($sessions) {
            $table->with($sessions)->paginate($this->perPage);

            $table->attributes([
                'class' => 'table table-hover table-striped',
            ]);

            $table->column('user', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->user->fullname;
                };
            });

            $table->column('Hours', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->getHours();
                };
            });

            $table->column('in');

            $table->column('out', function (Column $column) {
                $column->value = function (WorkOrderSession $session) {
                    return $session->getOutLabel();
                };
            });
        });
    }
Returns a new table of all work order sessions.

@param WorkOrder $workOrder

@return \Orchestra\Contracts\Html\Builder