@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>
							Edit General Election
						</div>
						<div>
							<a style="text-decoration:none;" href="{{ route('general_elections.index') }}">Back</a>
						</div>
					</div>
				</div>

                <div class="card-body">
					<form method="POST" action="{{route('general_elections.update',$general_election) }}" file="true" enctype="multipart/form-data">
						@csrf
						<div class="p-3">
							
							<div class="mb-3">
							  <label for="title_en" class="form-label">{{__('labels.title_en')}}</label>
							  <input type="text" class="form-control" id="title_en" name="title_en" value="{{old('title_en',$general_election->title_en)}}" placeholder="enter english title">
							</div>
							
							<div class="mb-3">
							  <label for="title_mr" class="form-label">{{__('labels.title_mr')}}</label>
							  <input type="text" class="form-control" id="title_mr" name="title_mr" value="{{old('title_mr',$general_election->title_mr)}}" placeholder="enter marathi title">
							</div>	
									
							<div class="py-3 text-center">							 
								<button class="btn btn-success  btn-sm mb-1" type="submit">Update</button>
							</div>
							
						</div>
					</form>				
                </div>
            </div>
        </div>
    </div>
</div>


@endsection