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

                <div class="card-body">
					<form method="POST" action="{{route('main_menus.update',$main_menu) }}" file="true" enctype="multipart/form-data">
						<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',$main_menu->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',$main_menu->title_mr)}}" placeholder="enter marathi title">
								 							</div>	
							<div class="mb-3">
							  <label for="headline_en" class="form-label">{{__('labels.headline_en')}}</label>
							  <input type="text" class="form-control" id="headline_en" name="headline_en" value="{{old('headline_en',$main_menu->headline_en)}}" placeholder="enter english headline">
								 							</div>
							<div class="mb-3">
							  <label for="headline_mr" class="form-label">{{__('labels.headline_mr')}}</label>
							  <input type="text" class="form-control" id="headline_mr" name="headline_mr" value="{{old('headline_mr',$main_menu->headline_mr)}}" placeholder="enter marathi headline">
								 							</div>	
							<div class="mb-3">
							  <label for="image_en" class="form-label">{{__('labels.image_en')}}</label>
							  <input type="file" class="form-control" id="image_en" name="image_en" accept="image/*" placeholder="enter english image">
															</div>					
							
							<div class="mb-3">
							  <label for="image_mr" class="form-label">{{__('labels.image_mr')}}</label>
							  <input type="file" class="form-control" id="image_mr" name="image_mr" accept="image/*" placeholder="enter marathi image">
															</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