Ejemplo n.º 1
0
@extends('templates.main')

@section('content')
	<div class="pricingPackages">
			<div class="photoTop2">
				<h1>PRICING</h1>
			</div>
			<p>Digital Packages<br>
				(edited digital files on disc)</p>
			@if(Auth::check())
				<p style="color:red;">CLICK ON TEXT TO EDIT <i class="fa fa-pencil"></i></p>
			@endif
			<?php 
$packages = \App\Models\Package::paginate(6);
$packages->setPath("");
?>
			<div class="wrap5">	
			@foreach($packages as $package)	
				<div class="package">
					<div class="topHeading"><h2 data-field="heading" data-packageid="{{$package->id}}">{{$package->heading}} </h2></div>
					<div class="img"><img src="{{asset('img/'.$package->picture)}}" alt=""></div>
					<div class="price">
						<p data-field="price" data-packageid="{{$package->id}}">{{$package->price}}</p>
					</div>
					<div class="content"><p data-field="description" data-packageid="{{$package->id}}">Price Includes<br><br>
						{{$package->description}}</p>
					</div>
					@if(Auth::check())
					{!! Form::open(["url"=>"pricingPackages/".$package->id, "method"=>"delete"]) !!} 
	           		{!! Form::submit("Delete" , array('class'=>'delete')) !!}
	            	{!! Form::close() !!}