@inject(nomineeController,App\Http\Controllers\NomineeController) @inject(request,Illuminate\Http\Request) @php $post = get_post() @endphp @php $category = $nomineeController->category($post); @endphp @extends('layouts.app') @section('content') @while(have_posts()) @php the_post() @endphp
@include('partials.nominee.section-1', ['category' => $category])
@include('partials.nominee.section-2', ['category' => $category])
@if(\App\ExtendedModel\Schmuckstars\NomineePost::where('ID', '=', $post->ID)->voteable()->exists())
@include('partials.nominee.section-3', ['category' => $category])
@endif
@include('partials.footer')
@includeWhen(session()->get('votingStatus') === 'success', 'partials.nominee.successful-vote') @endwhile @endsection