pai-sklep/resources/views/order/create.blade.php

31 lines
923 B
PHP
Raw Permalink Normal View History

2021-11-14 14:51:49 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
</style>
</head>
<body>
@if(Session::has('success'))
<div class="alert alert-success">
{{Session::get('success')}}
</div>
@endif
<div>
2021-12-07 12:22:46 +01:00
<form method="post" action="{{ route("order.store") }}">
2021-12-14 18:03:22 +01:00
@foreach($products_with_quantities as $product)
<input type="hidden" name="products[{{ $loop->index }}]" value="{{ $product[0]->uuid }}">
<x-product :product="$product[0]"/>
<input type="number" name="product_quantities[{{ $loop->index }}]" value="{{ $product[1] }}">
2021-12-07 12:22:46 +01:00
@endforeach
<textarea name="address"></textarea>
<input type="submit">
2021-11-14 14:51:49 +01:00
@csrf
</form>
</div>
</body>
</html>