{{-- @extends('layout.main')
@section('contenido')

    <button id="agregar">Agregar</button>
    @push('scripts')
    
@endpush
@endsection --}}

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
    <title>Document</title>
</head>
<body>
    <button id="agregar">Agregar</button>
</body>
</html>

<script type="text/javascript">
    $(document).ready(function() {
        var contador = 1
        var detalle = new Array();
        $("#agregar").click(function() {
            alert('dsafasdfsa')        
        });
    });
</script>