ldc-gen-game-web/resources/views/front/basic_example/winning-proof.blade.php
2020-11-12 17:22:54 +01:00

59 lines
3 KiB
PHP

@extends('front.basic.layout')
@section('title', 'Preuve de gain')
@section('content')
<p>Envoyer vos preuves de gain</p>
<form method="POST" action="{{ route('send-winning-proof') }}" enctype="multipart/form-data">
@method('PUT')
@csrf
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="form-group">
<input type="text" name="lastname" class="form-control" placeholder="Nom *" value="{{ Auth::user()->lastname }}" required>
</div>
<div class="form-group">
<input type="text" name="firstname" class="form-control" placeholder="Prénom *" value="{{ Auth::user()->firstname }}" required>
</div>
<div class="form-group">
<input type="text" name="address" class="form-control" placeholder="Adresse *" value="{{ Auth::user()->address }}" required>
</div>
<div class="form-group">
<input type="text" name="address2" class="form-control" placeholder="Adresse complémentaire" value="{{ Auth::user()->address2 }}">
</div>
<div class="form-group">
<input type="text" name="town" class="form-control" placeholder="Ville *" value="{{ Auth::user()->town }}" required>
</div>
<div class="form-group">
<input type="text" name="postal_code" class="form-control" placeholder="Code postal *" value="{{ Auth::user()->postal_code }}" required>
</div>
<div class="form-group">
<input type="text" name="country" class="form-control" placeholder="Pays *" value="{{ Auth::user()->country }}" required>
</div>
<div class="form-group">
<input type="text" name="phone" class="form-control" placeholder="Téléphone *" required>
</div>
<div class="form-group">
<label for="sticker">Stickers <small class="text-muted">Format : png, jpeg, jpg, pdf - Taille max. : 1,5Mo.</small></label><br/>
<input type="file" id="sticker" name="sticker" accept="image/png, image/jpeg, pdf" class="input-file" required>
</div>
<div class="form-group">
<label for="ticket">Ticket de caisse <small class="text-muted">Format : png, jpeg, jpg, pdf - Taille max. : 1,5Mo.</small></label><br/>
<input type="file" id="ticket" name="ticket" accept="image/png, image/jpeg, pdf" class="input-file" required>
</div>
<div class="form-group">
<label for="barcode">Code barres <small class="text-muted">Format : png, jpeg, jpg, pdf - Taille max. : 1,5Mo.</small></label><br/>
<input type="file" id="barcode" name="barcode" accept="image/png, image/jpeg, pdf" class="input-file" required>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-success" value="Envoyer">
</div>
</form>
@endsection