Skip to content

Commit

Permalink
fix edit if style missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tushargugnani committed Feb 14, 2023
1 parent 0cc669a commit 79dd4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/smart-ad-manager/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg

<div x-show="adType == 'IMAGE'">
<div>
<img src="{{asset($smartAd->image)}}" alt="{{$smartAd->imageAlt}}" />
<img src="{{asset('storage/'.$smartAd->image)}}" alt="{{$smartAd->imageAlt}}" />
<label class="w-96 mt-4 block text-sm">
<span class="text-gray-700 dark:text-gray-400">Change Image File</span>
<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">
Expand Down Expand Up @@ -135,7 +135,7 @@ class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:bor
{
position: '{{$placement->position}}',
selector: '{{$placement->selector}}',
style: '{{$placement->style}}'
style: '{{isset($placement->style) ? $placement->style : ''}}'
},
@endforeach
@else
Expand Down

0 comments on commit 79dd4fa

Please sign in to comment.