Skip to content

Commit 79dd4fa

Browse files
committed
fix edit if style missing
1 parent 0cc669a commit 79dd4fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/smart-ad-manager/edit.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg
5656

5757
<div x-show="adType == 'IMAGE'">
5858
<div>
59-
<img src="{{asset($smartAd->image)}}" alt="{{$smartAd->imageAlt}}" />
59+
<img src="{{asset('storage/'.$smartAd->image)}}" alt="{{$smartAd->imageAlt}}" />
6060
<label class="w-96 mt-4 block text-sm">
6161
<span class="text-gray-700 dark:text-gray-400">Change Image File</span>
6262
<input type="file" name="image" class="form-control block w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none" id="formFile">
@@ -135,7 +135,7 @@ class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:bor
135135
{
136136
position: '{{$placement->position}}',
137137
selector: '{{$placement->selector}}',
138-
style: '{{$placement->style}}'
138+
style: '{{isset($placement->style) ? $placement->style : ''}}'
139139
},
140140
@endforeach
141141
@else

0 commit comments

Comments
 (0)