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

                <div class="card-body">
					<form method="POST" action="{{route('ward_compositions.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="yearwise_population_en" class="form-label">{{__('labels.yearwise_population_en')}}</label>
							  <input type="text" class="form-control" id="yearwise_population_en" name="yearwise_population_en" placeholder="enter yearwise population in english ">
							</div>	
							
							<div class="mb-3">
							  <label for="yearwise_population_mr" class="form-label">{{__('labels.yearwise_population_mr')}}</label>
							  <input type="text" class="form-control" id="yearwise_population_mr" name="yearwise_population_mr" placeholder="enter yearwise population in marathi">
							</div>	
								
							
							<div class="mb-3">
							  <label for="ward_major_places_en" class="form-label">{{__('labels.ward_major_places_en')}}</label>
							  <input type="text" class="form-control" id="ward_major_places_en" name="ward_major_places_en" placeholder="enter ward major places in english">
							</div>	
							
							<div class="mb-3">
							  <label for="ward_major_places_mr" class="form-label">{{__('labels.ward_major_places_mr')}}</label>
							  <input type="text" class="form-control" id="ward_major_places_mr" name="ward_major_places_mr" placeholder="enter ward major places in marathi">
							</div>	
								
							<div class="mb-3">
							  <label for="current_reservation_en" class="form-label">{{__('labels.current_reservation_en')}}</label>
							  <input type="text" class="form-control" id="current_reservation_en" name="current_reservation_en" placeholder="enter current reservation in english">
							</div>	
								
							<div class="mb-3">
							  <label for="current_reservation_mr" class="form-label">{{__('labels.current_reservation_mr')}}</label>
							  <input type="text" class="form-control" id="current_reservation_mr" name="current_reservation_mr" placeholder="enter current reservation in marathi">
							</div>	
								
							<div class="mb-3">
							  <label for="urlpath" class="form-label">{{__('labels.urlpath')}}</label>
							  <input type="text" class="form-control" id="urlpath" name="urlpath" placeholder="enter url path">
							</div>	
								
							<div class="py-3 text-center">							 
								<button class="btn btn-success  btn-sm mb-1" type="submit">Create</button>
							</div>
						
						</div>
					</form>				
                </div>
            </div>
        </div>
    </div>
</div>
@endsection