@extends('layouts.admin') @section('content')

Gestion des branches

@if(session()->get('completed'))
Alert!
{{ session()->get('completed') }}
@endif

Branches

@foreach($branches as $branche) @endforeach
Branche Localisation X Localisation Y Villes Zones Quartiers Action
{{$branche->libelle}} {{$branche->localisation_x}} {{$branche->localisation_y}} @php $villes_array = explode(",",$branche->villes_ids); $villes_array_items = DB::table('villes')->select('libelle')->wherein('id', $villes_array)->get(); foreach($villes_array_items as $villes_array_item){ echo "".$villes_array_item->libelle.""; } @endphp @php $zones_array = explode(",",$branche->zones_ids); $zones_array_items = DB::table('zones')->select('libelle')->wherein('id', $zones_array)->get(); foreach($zones_array_items as $zones_array_item){ echo "".$zones_array_item->libelle.""; } @endphp @php $quartiers_array = explode(",",$branche->quartiers_ids); $quartiers_array_items = DB::table('quartiers')->select('libelle')->wherein('id', $quartiers_array)->get(); foreach($quartiers_array_items as $quartiers_array_item){ echo "".$quartiers_array_item->libelle.""; } @endphp Modifier
@csrf @method('DELETE')
@endsection