info.blade.php 1.0 KB

12345678910111213141516171819202122232425262728
  1. <div >
  2. <div class="form-group">
  3. <label>{{ translate('File Name') }}</label>
  4. <input type="text" class="form-control" value="{{ $file->file_name }}" disabled>
  5. </div>
  6. <div class="form-group">
  7. <label>{{ translate('File Type') }}</label>
  8. <input type="text" class="form-control" value="{{ $file->type }}" disabled>
  9. </div>
  10. <div class="form-group">
  11. <label>{{ translate('File Size') }}</label>
  12. <input type="text" class="form-control" value="{{ formatBytes($file->file_size) }}" disabled>
  13. </div>
  14. <div class="form-group">
  15. <label>{{ translate('Uploaded At') }}</label>
  16. <input type="text" class="form-control" value="{{ $file->created_at }}" disabled>
  17. </div>
  18. <div class="form-group text-center">
  19. @php
  20. if($file->file_original_name == null){
  21. $file_name = translate('Unknown');
  22. }else{
  23. $file_name = $file->file_original_name;
  24. }
  25. @endphp
  26. <a class="btn btn-secondary" href="{{ my_asset($file->file_name) }}" target="_blank" download="{{ $file_name }}.{{ $file->extension }}">{{ translate('Download') }}</a>
  27. </div>
  28. </div>