@extends('layouts.app', ['title' => 'Nova solicitação'])
@section('content')

<div class="card mt-1">
    <div class="card-header">
        <h4>Nova solicitação</h4>
        <div style="text-align: right; margin-top: -35px;">
            <a href="{{ route('ticket.index') }}" class="btn btn-danger btn-sm px-3">
                <i class="ri-arrow-left-double-fill"></i>Voltar
            </a>
        </div>
    </div>
    <div class="card-body">
        {!!Form::open()
        ->post()
        ->route('ticket.store')
        ->multipart()
        !!}
        <div class="pl-lg-4">
            @include('ticket._forms')
        </div>
        {!!Form::close()!!}

    </div>
</div>
@endsection

@section('js')
<script src="/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    $(function(){
        tinymce.init({ selector: 'textarea.tiny', language: 'pt_BR'})

        setTimeout(() => {
            $('.tox-promotion, .tox-statusbar__right-container').addClass('d-none')
        }, 500)
    })
</script>
@endsection
