first commit

This commit is contained in:
Eric Li
2025-06-13 12:09:50 +08:00
commit b12cd07419
545 changed files with 39389 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<!-- iframe field -->
@include('crud::fields.inc.wrapper_start')
<label>{!! $field['label'] !!}</label>
<br>
<a href="{{ $field['url'] }}" target="_blank" class="btn btn-success">檔案另開新視窗</a>
<br>
@include('crud::fields.inc.translatable_icon')
@if(isset($field['url']) && !empty($field['url']))
@if (strpos($field['url'], ".pdf") !== false)
<embed style="border: solid gray 1px"
src="{{ $field['url'] }}"
width="{{ $field['width'] ?? '' }}"
height="{{ $field['height'] ?? '' }}"
frameborder="0"
allowfullscreen
@if(isset($field['extra_attributes']))
@foreach($field['extra_attributes'] as $key => $value)
{{ $key }}="{{ $value }}"
@endforeach
@endif
></embed>
@else
<img style="border: solid gray 1px"
src="{{ $field['url'] }}"
height="{{ $field['height'] ?? '' }}"
></embed>
@endif
@if(isset($field['hint']))
<p class="help-block">{!! $field['hint'] !!}</p>
@endif
@else
<p class="text-muted">沒有可以顯示內容。</p>
@endif
</div>
@include('crud::fields.inc.wrapper_start')