Laravel Blade and Javascript

Posted 4 months ago by evripidesk

Hello I have the below blade with datepicker but is not working the datepicker (no error in concole)


    <link href="" rel="stylesheet">
    <script src=""></script>
    <script src=""></script>  
    <meta name="csrf-token" content="{{ csrf_token() }}">


    <div class="container">

      @if ($errors->any())
      <div class="alert alert-danger">
              @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
      </div><br />

      <form method="post" action="{{action('[email protected]')}}">

        <input name="date" class="date form-control" type="text">


<script type="text/javascript">


     format: 'mm-dd-yyyy'



if I dont use the endsection then is working but is breaking the template

Please sign in or create an account to participate in this conversation.