@if ($errors->has())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if($edit)
{{ Form::open(array('url'=>"hipwifi_editadvertmediasave", 'files' => true))}}
{{ Form::hidden('id', $data['mediaid'])}}
{{ Form::hidden('brandid', $data['brandid'])}}
@else
{{ Form::open(array('url' => "hipwifi_addadvertsave", 'files' => true))}}
@endif
{{ Form::label('campaign', 'Campaign'); }}
@if ($data['edit'] == true)
{{ Form::text('campaign', $data['campaign'], ['class' => 'form-control', 'required' => 'required']); }}
{{ Form::label('target', 'Target'); }}
{{ Form::text('target', $data['target'], ['class' => 'form-control', 'disabled' =>'disabled']); }}
{{ Form::label('media', 'Media: '. $data['type']); }}
{{-- //$assetsserver->value . 'hipwifi/images/' --}}
{{-- {{ Form::text('media', $data['media'], ['class' => 'form-control', 'disabled' =>'disabled']); }} --}}
@if($data['type'] == "video")
{{ Form::label('image', 'Upload New Video (max 100 Mb)')}}
{{ Form::file('video') }}
@else
{{ Form::label('image', 'Upload New Image (max 100 Kb)')}}
{{ Form::file('image') }}
@endif
@else
{{ Form::text('campaign', null, ['class' => 'form-control', 'required' => 'required']); }}
{{ Form::label('brand', 'Brand')}}
{{ Form::text('brand', $data['brandname'] , ['class' => 'form-control', 'readonly'=> 'readonly'] )}}
{{ Form::checkbox('target', 'target', null, ["id" => "target"]) }}
{{ Form::label('target', "Choose a single venue for advert?")}}
Targetting
{{Form::label('country', 'Country')}}
{{ Form::text('country', $data['brandcountry'] , ['class' => 'form-control'] )}}
{{ Form::hidden('countrie_id', $data['brandcountrieid'] )}}
{{ Form::label('province', 'Province/State') }}
{{ Form::label('citie', 'City') }}
{{ Form::label('venue', 'Venue') }}
Advert Content
{{ Form::checkbox('video', 'image', null, ['id' => 'imagecheck']) }}
{{ Form::label('image', 'Image (max 100 Kb)')}}
{{ Form::checkbox('video', 'video', null, ['id' => 'videocheck']) }}
{{ Form::label('video', 'Video (max 100 Mb)')}}
Image
{{ Form::file('image') }}
@endif
{{Form::submit('Submit', ["class" => 'btn btn-primary'])}}
Cancel
{{ Form::close() }}