@extends('layouts.app')
@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
					<div class="d-flex justify-content-between align-items-center">
						<div>
							Add Elected Candidate
						</div>
						<div>
							<a style="text-decoration:none;" href="{{route('elected_candidates.index',$general_election)}}">Back</a>
						</div>
					</div>
				</div>

                <div class="card-body">
					<form method="POST" action="{{route('elected_candidates.store',$general_election) }}" file="true" enctype="multipart/form-data">
					@csrf
						<div class="p-3">
							<div class="mb-3">
							  <label for="ward_en" class="form-label">{{__('labels.ward_en')}}</label>
							  <input type="text" class="form-control" id="ward_en" name="ward_en" placeholder="enter english ward">
								 @error('ward_en')
									<small class="text-danger">{{ $message }}</small>
								@enderror							
							</div>
							<div class="mb-3">
							  <label for="ward_mr" class="form-label">{{__('labels.ward_mr')}}</label>
							  <input type="text" class="form-control" id="ward_mr" name="ward_mr" placeholder="enter marathi ward">
								@error('ward_mr')
									<small class="text-danger">{{ $message }}</small>
								@enderror	
							</div>	
							
							<div class="mb-3">
							  <label for="files" class="form-label">{{__('labels.file')}}</label>
							  <input type="file" class="form-control" id="files" name="files[]" accept="image/*,application/pdf" placeholder="enter english file" multiple>
								@error('files')
									<small class="text-danger">{{ $message }}</small>
								@enderror	
							</div>					

							<div class="py-3 text-center">
							 
							<button class="btn btn-success  btn-sm mb-1" type="submit">Add</button>

							</div>

						
						</div>
					</form>				
                </div>
            </div>
        </div>
    </div>
</div>
@endsection