diff --git a/resources/views/logo.blade.php b/resources/views/logo.blade.php index 9197614..75bf3b3 100644 --- a/resources/views/logo.blade.php +++ b/resources/views/logo.blade.php @@ -1,21 +1,21 @@ @extends("layout.public", ["excludeBigBubbles" => true]) @php - $filesDirectory = public_path('materials'); + $filesDirectory = public_path("materials"); $materials = []; if (file_exists($filesDirectory) && is_dir($filesDirectory)) { foreach (scandir($filesDirectory) as $file) { - if (!in_array($file, ['.', '..'])) { + if (!in_array($file, [".", ".."])) { $fileKey = pathinfo($file, PATHINFO_FILENAME); - $filePath = $filesDirectory . '/' . $file; + $filePath = $filesDirectory . "/" . $file; $materials[] = [ - 'title' => __("materials.{$fileKey}.title"), - 'description' => __("materials.{$fileKey}.description"), - 'file_type' => pathinfo($file, PATHINFO_EXTENSION), - 'file_size' => number_format(filesize($filePath) / 1048576, 2) . ' MB', - 'download_url' => asset('materials/' . $file), + "title" => __("materials.{$fileKey}.title"), + "description" => __("materials.{$fileKey}.description"), + "file_type" => pathinfo($file, PATHINFO_EXTENSION), + "file_size" => number_format(filesize($filePath) / 1048576, 2) . " MB", + "download_url" => asset("materials/" . $file), ]; } } @@ -40,17 +40,17 @@
- {{ $material['file_type'] }}, {{ $material['file_size'] }} + {{ $material["file_type"] }}, {{ $material["file_size"] }}
-

{{ $material['title'] }}

-

{{ $material['description'] }}

+

{{ $material["title"] }}

+

{{ $material["description"] }}

{{ __("buttons.download") }} - {{ __('alt.download') }} + {{ __("alt.download") }}