| 1 | {@ include(common/header) @} |
| 2 | <h1>支払一覧</h1> |
| 3 | {@ if (isset($data['data']['results'])) @} |
| 4 | <table> |
| 5 | <thead> |
| 6 | <tr> |
| 7 | <th>日時</th> |
| 8 | <th>支払ID</th> |
| 9 | <th>種類</th> |
| 10 | <th>単殻</th> |
| 11 | <th>支払済み</th> |
| 12 | <th>認証済み</th> |
| 13 | <th>完了</th> |
| 14 | </tr> |
| 15 | </thead> |
| 16 | <tbody> |
| 17 | {@ foreach ($data['data']['results'] as $d) @} |
| 18 | {$ $p = isset($d['payment_date']) $} |
| 19 | {$ $c = isset($d['confirmation_date']) $} |
| 20 | {$ $r = $d['is_processed'] == 1 $} |
| 21 | <tr> |
| 22 | <td>{{ $d['creation_date'] }}</td> |
| 23 | <td>{{ $d['id'] }}</td> |
| 24 | <td>{{ $d['type'] }}</td> |
| 25 | <td>{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}</td> |
| 26 | <td><span style="color: #{{ $p ? '14c014' : 'ee5040' }};">{{ $p ? '〇' : '✕' }}</span></td> |
| 27 | <td><span style="color: #{{ $c ? '14c014' : 'ee5040' }};">{{ $c ? '〇' : '✕' }}</span></td> |
| 28 | <td><span style="color: #{{ $r ? '14c014' : 'ee5040' }};">{{ $r ? '〇' : '✕' }}</span></td> |
| 29 | </tr> |
| 30 | {@ endforeach @} |
| 31 | </tbody> |
| 32 | </table> |
| 33 | <p>結果数:{{ $data['data']['total'] }}</p> |
| 34 | {@ include(common/pagination) @} |
| 35 | {@ else @} |
| 36 | <p>何も見つけられませんでした。</p> |
| 37 | {@ endif @} |
| 38 | {@ include(common/footer) @} |