@extends('main') @section('title', '| Edytuj wyścig') @section('content') @php $sdate=$race->startDate; $edate=$race->endDate; //echo hoursToMinutes($hour); @endphp
{!! Form::model($race, ['route' => ['races.update' , $race->id] , 'method' => 'PUT']) !!}
{{ Form::label('name' , 'Nazwa:') }} {{ Form::text('name' , null , ['class' => 'form-control']) }} {{ Form::label('place' , 'Miejscowość:') }} {{ Form::text('place' , null , ['class' => 'form-control']) }} {{ Form::label('info' , 'Informacje dodatkowe:' , ['class' => 'form-spacing-top']) }} {{ Form::textarea('info' , null , ['class' => 'form-control']) }}
{{ Form::label('startDate' , 'Data rozpoczęcia wyścigu:' , ['class' => 'form-spacing-top']) }} {{ Form::date('startDate' ,date('Y-m-d', strtotime($sdate))) }} {{ Form::time('startTime',date('H:i', strtotime($sdate))) }}
{{ Form::label('endDatetime' , 'Data zakończenia wyścigu:') }} {{ Form::date('endDate' ,date('Y-m-d', strtotime($edate))) }} {{ Form::time('endTime',date('H:i', strtotime($edate))) }}
{{ Form::label('endDatetime' , 'Liczba zawodników' , ['class' => 'form-spacing-bot']) }} {{ Form::number('numberOfContestants', null) }}
{!! Html::linkRoute('races.show' , 'Cofnij' , array($race->id) , array('class' => 'btn btn-danger btn-block')) !!}
{{ Form::submit('Zapisz Zmiany' , ['class' => 'btn btn-success btn-block']) }}
{!! Form ::close() !!}
@endsection