2022-01-08 23:56:37 -03:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
@section('content')
|
2022-01-09 19:52:54 -03:00
|
|
|
<section class="section">
|
|
|
|
<div id="root" class="container">
|
|
|
|
<h1 class="title">
|
|
|
|
Compras MPS
|
|
|
|
</h1>
|
|
|
|
<p class="subtitle">
|
|
|
|
Bienvenidx a la aplicación de compras del <strong>Mercado Popular de Subsistencia</strong>
|
|
|
|
</p>
|
2022-01-11 17:24:46 -03:00
|
|
|
<subpedido-select inline-template gdcid="{{Auth::user()->grupoDeCompra->id}}">
|
2022-01-09 19:52:54 -03:00
|
|
|
<div class="block">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Escribí el nombre de tu familia o grupo de convivencia</label>
|
|
|
|
<div class="control">
|
|
|
|
<input class="input" @input="onType" v-model="subpedido"></input>
|
|
|
|
</div>
|
|
|
|
<p class="help">Intentá que sea claro como para que tus compas del barrio te identifiquen.</p>
|
2022-01-11 17:24:46 -03:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
|
|
<button class="button is-primary" @click="submit">Crear nuevo pedido</button>
|
2022-01-09 19:52:54 -03:00
|
|
|
</div>
|
|
|
|
<div class="table-container">
|
|
|
|
<table class="table is-hoverable">
|
|
|
|
<tbody>
|
2022-01-11 17:24:46 -03:00
|
|
|
<tr v-for="subpedidoExistente in subpedidosExistentes" >
|
|
|
|
<td><a v-text="subpedidoExistente.nombre" :href="subpedidoExistente.nombre"></a></td>
|
2022-01-09 19:52:54 -03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</subpedido-select>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-01-08 23:56:37 -03:00
|
|
|
@endsection
|
2022-01-09 19:52:54 -03:00
|
|
|
|
|
|
|
@section('scripts')
|
|
|
|
<script src="{{ asset('js/subpedidos-create.js') }}"></script>
|
|
|
|
@endsection
|