@extends('admin.setting.index')

@section('sub_content')
    <div class="setting-layout-body">
        <div class="add-company">
            <div class="add-company-body">
                <form action="{{ route('admin.notification.setting.global.template.save') }}" method="POST" class="add-company-form" enctype="multipart/form-data">
                    @csrf
                    <div class="card style-two w-100">
                        <div class="card-header">
                            <p class="card-title">{{ __($pageTitle) }}</p>
                        </div>
                        <div class="card-body">
                            <div class="row c-gx-4 gy-3 gy-md-4">
                                <div class="col-md-12">
                                    <label class="form--label style-two">@lang('Email From')</label>
                                    <input type="email" class="form--control md-style" name="email" value="{{ old('email', $company->email ?? '') }}" required />
                                </div>
                                <div class="col-md-12">
                                    <label class="form--label style-two">@lang('Email Template Header')</label>
                                    <textarea name="global_header" class="form--control md-style" rows="3">{{ old('global_header', $company->global_header ?? '') }}</textarea>
                                </div>
                                <div class="col-md-12">
                                    <label class="form--label style-two">@lang('Email Template Footer')</label>
                                    <textarea name="global_footer" class="form--control md-style" rows="3">{{ old('global_footer', $company->global_footer ?? '') }}</textarea>
                                </div>
                                <div class="col-md-12">
                                    <label class="form--label style-two">@lang('Email Template Signature')</label>
                                    <textarea name="global_signature" class="form--control md-style" rows="2">{{ old('global_signature', $company->global_signature ?? '') }}</textarea>
                                </div>
                                <div class="col-md-12">
                                    <label class="form--label style-two">@lang('Email Template CSS')</label>
                                    <textarea name="global_css" class="form--control md-style" rows="5">{{ old('global_css', $company->global_css ?? '') }}</textarea>
                                </div>
                                <div class="col-12">
                                    <button type="submit" class="btn btn--base btn--md w-100 mt-3">@lang('Submit')</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
