-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
69 lines (62 loc) · 1.78 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
declare(strict_types=1);
require_once __DIR__ . '/bootstrap.php';
/** @var \FourYouSee\Controllers\PlanController $app */
$products = $app->index();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<link rel="stylesheet" href="resources/css/style.css">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vaga desenvolvedor Coodesh</title>
</head>
<body>
<div class="container">
<div class="d-flex justify-content-center mt-3">
<h1> <?= $products['product'] ?></h1>
</div>
<table class="table">
<thead>
<tr>
<th scope="col">Código</th>
<th scope="col">Plano</th>
<th scope="col">Descrição (nome)</th>
<th scope="col">Localidade</th>
<th scope="col">Preço</th>
<th scope="col">Data de início</th>
</tr>
</thead>
<tbody>
<?php foreach ($products['plans'] as $key => $product) : ?>
<tr>
<th scope="row">
<?= $product['id']; ?>
</th>
<td>
<?= $product['type']; ?>
</td>
<td>
<?= $product['name']; ?>
</td>
<td>
<?= $product['localidade']['nome']; ?>
</td>
<td>
R$ <?= $product['phonePrice']; ?>
</td>
<td>
<?= $product['schedule']['startDate']; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</body>
</html>