As already noted, reducing the equation modulo $3$ yields that $2^t \equiv 1 \mod 3$ and as such, $t$ must be even. If we then reduce the equation modulo $5$, it follows that $2^t \equiv 7^z \equiv 2^z \mod 5$. This means that $t - z$ is divisible by $4$. In particular, $z$ is even too. Now write $t = 2a$ and $z = 2b$. We may then rewrite the equation as
$$
(2^a - 7^b)(2^a + 7^b) = 3^x 5^y.
$$
Unique factorisation and the second factor being positive then implies the existence of $x_1,x_2 \geq 0$ with $x_1 + x_2 = x$ and $y_1,y_2 \geq 0$ with $y_1 + y_2 = y$ satisfying
$$
2^a - 7^b = 3^{x_1}5^{y_1} \quad \text{and} \quad 2^a + 7^b = 3^{x_2}5^{y_2}.
$$
Adding these equations yields that
$$
2^{a+1} = 3^{x_1}5^{y_1} + 3^{x_2}5^{y_2}.
$$
If both $x_1, x_2 \geq 1$, divisibility by $3$ yields a contradiction. Hence either $x_1 = 0$ or $x_2 = 0$. Similarly, we must have either $y_1 = 0$ and $y_2 = 0$. Note that we cannot have $x_2 = y_2 = 0$ because $2^a + 7^b > 1$. There are thus three cases left to consider.
Suppose that $x_1 = y_1 = 0$, so in particular $2^a - 7^b = 1$. Suppose that $a \geq 4$ and reduce the equation modulo $16$. Then it follows that $7^b \equiv -1 \mod 16$, but one can quickly check that this yields no solutions as $7^2 \equiv 1 \mod 16$. We reduce to $a \leq 3$ and quickly find that only $a = 3$ and $b = 1$ yields a valid solution. This results in the solution
$$
2^6 = 3 \cdot 5 + 7^2
$$
found in the comments.
Now suppose that either $x_1 = y_2 = 0$ or $x_2 = y_1 = 0$. Then depending on the case, it either holds that
$$2^a - 7^b = 5^y \quad \text{or} \quad 2^a - 7^b = 3^x.
$$
To avoid the left hand side being negative, we may assume that $a \geq 3$. Now reduce the equation modulo $8$ to find that $\pm 1 \equiv 5^y \mod 8$ or $\pm 1 \equiv 3^x \mod 8$. This readily implies that $y$ resp. $x$ must be even.
However, we must in both cases also have that $2^{a+1} = 3^x + 5^y$. Reducing this modulo $8$ then yields that $0 \equiv 3^x + 1 \mod 8$ or $0 \equiv 1 + 5^y$ but this is a contradiction in both cases.
$a \equiv b \pmod m$
to get $a\equiv b \pmod m$ with the correct spacing. – jjagmath Oct 16 '22 at 10:52