|
1 | 1 | <?php
|
2 | 2 |
|
3 | 3 | use Illuminate\Support\Facades\Gate;
|
4 |
| -use YlsIdeas\FeatureFlags\Facades\Features; |
| 4 | +use Roxayl\MondeGC\Services\StringBladeService; |
5 | 5 |
|
6 | 6 | //Connexion et deconnexion
|
7 | 7 | include('php/log.php');
|
@@ -508,41 +508,12 @@ class="img-menu-drapeau">
|
508 | 508 | <!-- Liste des villes
|
509 | 509 | ================================================== -->
|
510 | 510 | <?php if ($row_villes) { ?>
|
511 |
| - <section> |
512 |
| - <div id="villes" class="titre-vert anchor"> |
513 |
| - <?php if(Features::accessible('subdivision') && $eloquentPays->use_subdivisions): ?> |
514 |
| - <h1>Subdivisions et villes</h1> |
515 |
| - <?php else: ?> |
516 |
| - <h1>Villes</h1> |
517 |
| - <?php endif; ?> |
518 |
| - </div> |
519 |
| - <div id="liste-villes"> |
520 |
| - <ul class="listes listes-two-columns"> |
521 |
| - <?php do { ?> |
522 |
| - <li class="row-fluid"> |
523 |
| - <div class="span5 img-listes"> <a href="page-ville.php?ch_pay_id=<?= e($row_Pays['ch_pay_id']) ?>&ch_ville_id=<?= e($row_villes['ch_vil_ID']) ?>"> |
524 |
| - <?php if ($row_villes['ch_vil_lien_img1']) {?> |
525 |
| - <img src="<?php echo $row_villes['ch_vil_lien_img1']; ?>" alt="<?= e($row_villes['ch_vil_nom']) ?>"> |
526 |
| - <?php } else { ?> |
527 |
| - <img src="assets/img/imagesdefaut/ville.jpg" alt="ville"> |
528 |
| - <?php } ?> |
529 |
| - </a> </div> |
530 |
| - <div class="span6 info-listes" style="text-justify: none;"> |
531 |
| - <h4 class="mb-2"><?= e($row_villes['ch_vil_nom']) ?></h4> |
532 |
| - <p><strong>Population : </strong> |
533 |
| - <?= number_format($row_villes['ch_vil_population'], 0, ',', ' ') ?> |
534 |
| - </p> |
535 |
| - <?php if(! empty($row_villes['ch_vil_specialite'])): ?> |
536 |
| - <p><strong>Spécialité : </strong> <?= e($row_villes['ch_vil_specialite']) ?></p> |
537 |
| - <?php endif; ?> |
538 |
| - <p>Ville créée par <strong><?= e($row_villes['ch_use_login']) ?></strong></p> |
539 |
| - <a href="page-ville.php?ch_pay_id=<?= e($row_Pays['ch_pay_id']) ?>&ch_ville_id=<?= e($row_villes['ch_vil_ID']) ?>" class="btn btn-primary">Visiter</a> </div> |
540 |
| - </li> |
541 |
| - <?php } while ($row_villes = mysql_fetch_assoc($villes)); ?> |
542 |
| - </ul> |
543 |
| - </div> |
544 |
| - </section> |
| 511 | + <?php echo app(StringBladeService::class)->render( |
| 512 | + '<x-pays.ville-front-section :pays="$pays" />', |
| 513 | + ['pays' => $eloquentPays] |
| 514 | + ) ?> |
545 | 515 | <?php } ?>
|
| 516 | + |
546 | 517 | <!-- Géographie - Carte INTERACTIVE
|
547 | 518 | ================================================== -->
|
548 | 519 |
|
|
0 commit comments