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();
                };
            });
        });
    }