@extends('admin.layout.master')
@section('content')
@include('admin/templates/script_js')
<div class='bg-white p-2 rounded '>
    <div class="row justify-content-between p-3 rounded m-2  bg-light">
        <div class="col-12 col-md-6 align-self-center">
            <a class='text-decoration-none fw-bold theme_link_color' href="{{url('/home')}}">{{trans('admin.Home')}}  </a> <span class="bi bi-caret-right-fill theme_text_color"></span>
            <a class='text-decoration-none fw-bold theme_link_color' href="{{url('/email_templates')}}">{{trans('admin.Email')}}  </a> <span class="bi bi-caret-right-fill theme_text_color"></span>
            <a class='text-decoration-none fw-bold ' href="{{url('/email_templates')}}">{{trans('admin.edit_email_templates')}}  </a> <span class="bi bi-caret-right theme_text_color"></span>
             <span class='text-decoration-none fw-bold theme_text_color' >{{$template->name}}</span>
            <a class='text-decoration-none fw-bold text-dark breadc' href="">

            </a>
        </div>
    </div>
</div>
<div class="container-fluid  rounded border">
    <div class="row p-3 ">
        <div class="col-md-9 pe-lg-5">
            <form id="profile_update" type="post">
            	@csrf
            	<input type="hidden" name="id" id="id" value="{{$template->id}}">
                <div class="mb-3">
                    <label for="name" class="form-label">{{trans('admin.name')}}</label>
                    <input type="text" class="form-control  rounded-pill bg-light_c border-0" id="name" name="name" aria-describedby="emailHelp" placeholder="{{trans('admin.name')}}" value="{{$template->name}}" readonly>
                </div>
                <div class="mb-3">
                    <label for="subject" class="form-label">{{trans('admin.subject')}}</label>
                    <input type="text" class="form-control  rounded-pill bg-light_c border-0" id="subject" name="subject" aria-describedby="emailHelp" placeholder="{{trans('admin.subject')}}" value="{{$template->subject}}">
                </div>
                <div class="mb-3">
                    <textarea class="form-control bg-light_c border-0 rounded cat" id="message" name="message" rows="4" placeholder="{{trans('admin.content')}}">{{$template->content}}</textarea>
                </div>
                <div class='d-flixs'>
                    <button type="submit" class="btn btn-warning col-bt rounded-pill mb-4 mt-2 text-white">{{ trans('admin.update') }}</button>
                </div>
            </form>
        </div>
        <div class="col-md-3 bg-light_c p-3 rounded  g-2">
            <div class="container ">
                <i class="bi bi-question-circle-fill" style="font-size: 20px; padding-top:10px;"></i>
                <p class='fw-bold text-dark mt-2'>{{ trans('admin.parameters') }}</p>
                <p>{{ trans('admin.we_will_use_parameters_like_this') }}</p>
                <p><?php echo "{{username}}" ?></p>
                <p><?php echo "{{message}}" ?></p>
            </div>
        </div>
    </div>
</div>
<script>
    CKEDITOR.replace('message');
</script>
@endsection
