@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Result {{ $title_menu }}

{{-- button back --}}

Results Of Voting {{ $voting[0]->title }}

{{ $voting[0]->description }}
Voting Option Image

Vote Breakdown

{{-- Table rows will be populated here --}}
@foreach ($list as $data)
@php $users = DB::table("tr_voting") ->join("users", "users.id","=","tr_voting.id_user") ->where("id_option",$data->id) ->where("tr_voting.isactive","1") ->get(); // dd($data,$users); // Dummy users data // $users = [ // ['name' => 'John Doe', 'email' => 'john.doe@example.com'], // ['name' => 'Jane Smith', 'email' => 'jane.smith@example.com'], // ['name' => 'Alice Brown', 'email' => 'alice.brown@example.com'], // ['name' => 'Bob Davis', 'email' => 'bob.davis@example.com'], // ['name' => 'Lisa White', 'email' => 'lisa.white@example.com'], // ]; @endphp @foreach ($users as $user)
{{ $user->username }}
@endforeach
@endforeach
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush