@extends('layouts.app') @section('title', 'County') @section('content')
County Information
Name {{ $county->name ?? 'N/A' }}
Slug {{ $county->slug ?? 'N/A' }}
Description {{ $county->description ?? 'N/A' }}
County Officers
@foreach($countyOffices as $countyOffice) {{-- @php dump(Auth::user()->isCountyAdmin($county->id)) @endphp --}} @endforeach
{{ $countyOffice->office->name }} {{ $countyOffice->getOfficerName() }}  @if(Auth::user()->isCountyAdmin($county->id) && $countyOffice->office->name != 'County Clerk') Edit @endif @if(Auth::user()->isStateAdmin($state->id) && $countyOffice->office->name == 'County Clerk') Edit @endif
@if( Auth::user()->hasStateOffice(['Governor', 'Secretary of State'], $state->id) || Auth::user()->hasCountyOffice(['County Clerk'], $county->id) )
County Members
Name Email Actions
@endif {{--
Voting Locations
@if(Auth::user()->hasStateRole(['State Admin'], $state->id) || Auth::user()->hasCountyRole(['County Admin'], $county->id)) Create Voting Location @endif @if($county->votingLocations->count() > 0) @foreach($county->votingLocations as $votingLocation) @endforeach
Name Address
{{ $votingLocation->name ?? '' }} {{ $votingLocation->address_1 }} @if($votingLocation->address_2)
{{ $votingLocation->address_2 }} @endif
{{ $votingLocation->city }}, {{ $votingLocation->state }}, {{ $votingLocation->zip}}
View Edit
@else
There are currently no voting locations for this county.
@endif
--}} {{--
Townships
@if(Auth::user()->hasStateRole(['State Admin'], $state->id) || Auth::user()->hasCountyRole(['County Admin'], $county->id)) Create Voting Location @endif @if($townships->count() > 0) @foreach($townships as $township) @endforeach
ID Name ZIP
{{ $township->id }} {{ $township->name ?? '' }} {{ $township->zip ?? '' }} View Edit
@else
There are currently no townships for this county.
@endif
--}}
@endsection @push('styles') @endpush @push('scripts') @endpush