@extends('layouts.master') @section('contain')

{{ auth()->user()->user_role == 'sub_admin' ? 'Poll Management' : 'Stock Poll Management' }}

@if (auth()->user()->user_role == 'sub_admin' || (auth()->user()->user_role == 'admin' && $is_stock < 10)) @if (auth()->user()->user_role == 'sub_admin') @endif @endif
{{--
Data table example
--}}
{{-- --}} @php $num = 1; @endphp @foreach ($polls as $poll) @endforeach
S.No Question End DateMediaAction
{{ $num++ }} {{ $poll->question }} {{ $poll->end_date }} @if (auth()->user()->user_role == 'sub_admin' && $poll->is_stock == true) @elseif (auth()->user()->user_role == 'admin') @endif @if (auth()->user()->user_role == 'admin')
@csrf @method('DELETE')
@elseif (auth()->user()->user_role == 'sub_admin' && $poll->is_stock == false)
@csrf @method('DELETE')
@endif {{-- {{$vid??""}} --}}
@endsection