@extends('admin.layouts.master') @section('meta') Advertisements | Admin @stop @section('content')
@if(Session::get('error'))
{{ Session::get('error') }}
@endif @if(Session::get('message'))
{{ Session::get('message') }}
@endif {{ Form::model($advertisement, array('route' => array('admin.advertisement.update', $advertisement->id), 'method' => 'PUT', 'class'=>'box', 'files' => true)) }}
{{ Form::label('url', 'URL') }}
{{ Form::text('url') }}
{{ Form::label('image', 'Image') }} {{ Form::file('image') }} @if($advertisement->image != '') Remove Photo @endif
{{ Form::label('expires', 'Expiration') }}
{{ Form::text('expires') }}
{{ Form::checkbox('expirable') }} {{ Form::label('expirable', 'Allowed to Expire', array('class' => 'left')) }}
{{ Form::label('default', 'Default Ad') }} {{ Form::select('default', array('0' => 'False', '1' => 'True')) }}
{{ Form::submit('Submit', array('class' => 'button button--submit')) }}
{{ Form::close() }}
@stop