in picture-1 transactions are out of block and in picture-2 transactions are included in block
In your picture-1, the transactions are NOT shown as outside the block. They are shown as outside the "block header"
Your picture-1 has the caption "Simplified Bitcoin Block Chain". You should take care not to interpret a simplified diagram as if it were completely accurate. The second diagram is also simplified and not a complete specification of data in a block.
Both these diagrams have misleading elements. For example the direction of arrows in the first diagram. The inclusion of "proof of work" in the second diagram as if that were a data item stored in the block structure. It isn't.
Are transactions included in a block or is only the Merkle-root hash included in a block
The cause of this confusion is that
- The block hash includes the block header only†.
- The block data includes a block-header and all transaction data.
†The hash of the block does not directly include the transaction data. The transaction data is included indirectly.
One of the items in the block header is the Merkle root. The Merkle root is a hash resulting from repeated pairwise hashing of transaction data. A consequence of this is that altering any transaction would result in a different block hash.