<?php $__env->startSection("title"); ?>
	Lorem Ipsum Generator
<?php $__env->stopSection(); ?>

<?php $__env->startSection("head"); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection("content"); ?>

<a href="..">Back to main page</a>

<h1>Lorem Ipsum Generator</h1>

<p>
	In publishing and graphic design, lorem ipsum is a filler text commonly used to demonstrate the graphic elements of a document or visual presentation. Replacing meaningful content that could be distracting with placeholder text may allow viewers to focus on graphic aspects such as font, typography, and page layout.
	<br />
	<a href="http://en.wikipedia.org/wiki/Lorem_ipsum">- Wikipedia</a>
</p>


<?php echo Form::open (array('url' => '/lorem-ipsum', 'method' => 'POST')); ?>

	<?php echo Form::label('paragraphs', 'How many paragraphs? '); ?>

	<?php if(isset($text)): ?>
		<?php echo Form::text('paragraphs', $text['number']); ?>

	<?php else: ?>
		<?php echo Form::text('paragraphs', '5'); ?>

	<?php endif; ?>

	<?php echo Form::submit('Generate Latin Text!');; ?>


		
		<?php if(isset($text)): ?>
			<h2>Here is your Lorem Ipsum text:</h2>

			<?php foreach($text['paragraphs'] as $paragraph): ?>
				<p>
					<?php echo $paragraph; ?>

				</p
			<?php endforeach; ?>
		<?php endif; ?>
<?php echo Form::close(); ?>




<br /><br />



<?php $__env->stopSection(); ?>
<?php echo $__env->make("_master", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>