@extends('layouts.app') @section('title', $title) @section('content')

{{ $title }}

@include('flash::message')
{!! Form::model($offer, ['route' => $offer->id ? ['special_offers::update', $offer] : 'special_offers::store', 'method' => $offer->id ? 'patch' : 'post']) !!}
{!! Form::label('name', trans('labels.special_offer_title')) !!} {!! Form::input('text', 'name', $offer->name, ['class' => 'form-control', 'required']) !!} @if($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('amount', trans('labels.price')) !!}
{{ $currency }} {!! Form::number('amount', $offer->amount, ['class' => 'form-control', 'step' => '0.01', 'required']) !!} @if($errors->has('amount')) {{ $errors->first('amount') }} @endif

{!! Form::label('features', trans('labels.special_offer_features')) !!} @if(count($offer->features)) @foreach($offer->features as $feature)
@endforeach @endif
{!! Form::close() !!}
@endsection