Files
ui/resources/views/ventas/precios/proyectos.blade.php

29 lines
667 B
PHP
Raw Normal View History

2021-12-01 21:04:06 -03:00
@extends('layout.base')
@section('content')
<div class="page-heading">
<h3>Precios</h3>
</div>
<table class="table">
2022-06-13 21:36:11 -04:00
<tbody id="proyectos"></tbody>
2021-12-01 21:04:06 -03:00
</table>
@endsection
2022-06-13 21:36:11 -04:00
@push('scripts')
<script type="text/javascript">
$(document).ready(() => {
sendGet('/proyectos').then(response => {
response.proyectos.forEach(el => {
$('#proyectos').append(
$('<tr></tr>').append(
$('<td></td>').append(
$('<a></a>').attr('href', '{{$urls->base}}/proyecto/' + el.id + '/precios').html(el.descripcion)
)
)
)
})
})
})
</script>
@endpush