@extends('admin.layouts.master') @section('meta') Advertisements | Admin @stop @section('content')
@if(Session::get('error'))
{{ Session::get('error') }} @if(Session::get('errors'))
    @foreach($errors as $error)
  • {{ $error}}
  • @endforeach
@endif
@endif @if(Session::get('message'))
{{ Session::get('message') }}
@endif {{ Form::open(array('route' => array('admin.advertisement.store'), 'files' => true)) }}
{{ Form::label('business_name', 'Business Name') }} {{ Form::text('business_name') }}
{{ Form::label('address_line_1', 'Business Address') }} {{ Form::text('address_line_1') }}
{{ Form::label('address_line_2', 'Line 2', array('class' => 'secondary')) }} {{ Form::text('address_line_2') }}
{{ Form::label('city', 'City') }} {{ Form::text('city') }}
{{ Form::label('state', 'State') }} {{ Form::text('state') }}
{{ Form::label('zip', 'Zipcode') }} {{ Form::text('zip') }}
{{ Form::label('phone', 'Telephone') }} {{ Form::text('phone') }}
{{ Form::label('url', 'URL') }}
{{ Form::text('url') }}
{{ Form::label('image', 'Image') }} {{ Form::file('image') }}
{{ 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