<div>
    @livewire('components.admin-sidebar')

	 <!-- Main Content-->
    <div class="main-content side-content pt-0">

        <div class="container-fluid">
            <div class="inner-body">

                <div class="row row-sm mt-5">
                    <div class="col-lg-12 col-md-12">
                        <div class="card custom-card">
                            <div class="card-body">
                                <div>
                                    <h6 class="main-content-label mb-1">Send Email</h6>
                                </div>
                                <form wire:submit.prevent="pushMail" method="post">
                                    <div class="form-group">
                                        <input class="form-control" placeholder="Email" wire:model.lazy="items.email" type="text">
                                        @error('items.email')
                                            <small class="text-danger">{{ str_replace('items.', '', $message) }}</small>
                                        @enderror
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="Subject" wire:model.lazy="items.subject" type="text">
                                        @error('items.subject')
                                            <small class="text-danger">{{ str_replace('items.', '', $message) }}</small>
                                        @enderror
                                    </div>
                                    <div class="form-group">
                                        <textarea class="form-control" wire:model.lazy="items.body"></textarea>
                                        @error('items.body')
                                            <small class="text-danger">{{ str_replace('items.', '', $message) }}</small>
                                        @enderror
                                    </div>
                                    @if(isset($this->response['text']))
                                        <div class="p-2">
                                            <small class="mb-1 fw-bold text-{{ $this->response['status'] }}">{{ $this->response['text'] }}</small>
                                        </div>
                                    @endif
                                    <div class="form-group btn btn-list">
                                        <button class="btn ripple btn-main-primary" type="submit">Send</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

			</div>
		</div>
	</div>

</div>