Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
@if(isset($dataTypeContent->{$row->field})) @if(json_decode($dataTypeContent->{$row->f..
Decoded Output download
<? @if(isset($dataTypeContent->{$row->field}))
@if(json_decode($dataTypeContent->{$row->field}) !== null)
@foreach(json_decode($dataTypeContent->{$row->field}) as $file)
<div data-field-name="{{ $row->field }}">
<a class="fileType" target="_blank"
href="{{ Storage::disk(config('voyager.storage.disk'))->url($file->download_link) ?: '' }}"
data-file-name="{{ $file->original_name }}" data-id="{{ $dataTypeContent->getKey() }}">
{{ $file->original_name ?: '' }}
</a>
<a href="#" class="voyager-x remove-multi-file"></a>
</div>
@endforeach
@else
<div data-field-name="{{ $row->field }}">
<a class="fileType" target="_blank"
href="{{ Storage::disk(config('voyager.storage.disk'))->url($dataTypeContent->{$row->field}) }}"
data-file-name="{{ $dataTypeContent->{$row->field} }}" data-id="{{ $dataTypeContent->getKey() }}">>
{{ __('voyager::generic.download') }}
</a>
<a href="#" class="voyager-x remove-single-file"></a>
</div>
@endif
@endif
<input @if($row->required == 1 && !isset($dataTypeContent->{$row->field})) required @endif type="file" name="{{ $row->field }}[]" multiple="multiple">
?>
Did this file decode correctly?
Original Code
@if(isset($dataTypeContent->{$row->field}))
@if(json_decode($dataTypeContent->{$row->field}) !== null)
@foreach(json_decode($dataTypeContent->{$row->field}) as $file)
<div data-field-name="{{ $row->field }}">
<a class="fileType" target="_blank"
href="{{ Storage::disk(config('voyager.storage.disk'))->url($file->download_link) ?: '' }}"
data-file-name="{{ $file->original_name }}" data-id="{{ $dataTypeContent->getKey() }}">
{{ $file->original_name ?: '' }}
</a>
<a href="#" class="voyager-x remove-multi-file"></a>
</div>
@endforeach
@else
<div data-field-name="{{ $row->field }}">
<a class="fileType" target="_blank"
href="{{ Storage::disk(config('voyager.storage.disk'))->url($dataTypeContent->{$row->field}) }}"
data-file-name="{{ $dataTypeContent->{$row->field} }}" data-id="{{ $dataTypeContent->getKey() }}">>
{{ __('voyager::generic.download') }}
</a>
<a href="#" class="voyager-x remove-single-file"></a>
</div>
@endif
@endif
<input @if($row->required == 1 && !isset($dataTypeContent->{$row->field})) required @endif type="file" name="{{ $row->field }}[]" multiple="multiple">
Function Calls
None |
Stats
MD5 | 9241781f4b89381c41fc594debd13f79 |
Eval Count | 0 |
Decode Time | 83 ms |