@extends('admin.layouts.container')

@section('content')
<div class="side-title">
    <h3>{{ $head ?? '' }}</h3>
</div>

<div class="border-item">
    <form class="form-row" method="post" onsubmit="saveForm(this)" action="{{ $action }}">
        @if($newsletter ?? ''  && $newsletter->id ?? '')
            @method('PUT')
        @endif
        @CSRF

        @if ($newsletter ?? '')

        <div class="form-group col-lg-6">
            <label>{{ meta('visitor_email', getCurrentLocale()) ?? __('newsletters.email') }} </label>
            <p class="form-control" style="height: auto">{{$newsletter->email}}</p>
        </div>
        <div class="form-group col-lg-6">
            <label>{{  __('newsletters.created_at') }} </label>
            <p class="form-control" style="height: auto">{{$newsletter->created_at}}</p>
        </div>
        @endif


    </form>
</div>

@endsection

@section('inner_js')
    <!-- Editor JS orders -->
    <script src="{{ asset('/assets/admin/js/lib/tinymce.min.js') }}"></script>-
    <script>
        var route_prefix = "{{ url(config('lfm.prefix')) }}";
        var url = "{{url('/')}}/";
    </script>
    <script src="{{ asset('assets/admin/js/editor.js') }}"></script>
    <script src="{{ asset('assets/admin/js/lfm.js') }}"></script>

@endsection
