@extends('main') @section('title' , '| Posty') @section('content')

{{ $race->name }}

Stwórz nowy punkt kontrolny


{{ Form::open(['route' => ['checkpoints.store', $race->id], 'method' => 'POST']) }}
{{ Form::label('qrCode', 'Kod QR') }} {{ Form::text('qrCode',$randomkod, array('class' => 'form-control', 'required', 'maxlength' => '12', 'readonly' )) }} {{ Form::label('shortDesc' , 'Krotki opis') }} {{ Form::text('shortDesc' , null , ['class' => 'form-control', 'maxlength' => '100']) }} {{ Form::label('detailedDesc' , 'Dokładny opis' , ['class' => 'form-spacing-top']) }} {{ Form::textarea('detailedDesc' , null , ['class' => 'form-control', 'maxlength' => '250' ,'size'=>'30x5']) }} {{ Form::text('race_id' , $race->id , ['class' => 'hidden']) }} {{ Form::submit('Zatwierdź',array('class' => 'btn btn-success btn-lg btn-block','style'=>'margin-top:20px;')) }} {!! Form::close() !!}

Kody QR:

@foreach($race->checkpoints as $checkpoint)

Id: {{ $checkpoint->id }}

shortDesc == NULL ? "hidden" : "" }}>Adres: {{ $checkpoint->shortDesc }}

detailedDesc == NULL ? "hidden" : "" }}>Opis: {{ substr($checkpoint->detailedDesc, 0, 50) }}{{ strlen($checkpoint->detailedDesc) > 50 ? "..." : "" }}

Pokaż
@endforeach
@endsection