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

30 lines
792 B
PHP
Raw 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") }}">
@foreach($products as $product)
<input type="hidden" name="products[{{ $loop->index }}]" value="{{ $product->uuid }}">
<x-product :product="$product" />
@endforeach
<textarea name="address"></textarea>
<input type="submit">
2021-11-14 14:51:49 +01:00
@csrf
</form>
</div>
</body>
</html>