diff --git a/resources/views/components/forms/edit-preview.blade.php b/resources/views/components/forms/edit-preview.blade.php index f34f1c60..a07e1225 100644 --- a/resources/views/components/forms/edit-preview.blade.php +++ b/resources/views/components/forms/edit-preview.blade.php @@ -25,6 +25,7 @@ class="overflow-hidden h-full w-auto border border-gray-300 rounded dark:border- icon-size="xl" class="p-4 rounded" :type="$file['type']" + :extension="$file['ext']" /> @endif @@ -35,4 +36,4 @@ class="p-4 rounded" -@endif \ No newline at end of file +@endif diff --git a/resources/views/components/forms/preview.blade.php b/resources/views/components/forms/preview.blade.php index aba75cd9..07c5a0fd 100644 --- a/resources/views/components/forms/preview.blade.php +++ b/resources/views/components/forms/preview.blade.php @@ -20,6 +20,7 @@ class="overflow-hidden border border-gray-300 rounded dark:border-gray-900 check icon-size="xl" class="p-4 rounded" :type="$record->type" + :extension="$record->ext" /> @endif diff --git a/src/Resources/MediaResource.php b/src/Resources/MediaResource.php index 6ccc6983..0cf8469a 100644 --- a/src/Resources/MediaResource.php +++ b/src/Resources/MediaResource.php @@ -74,11 +74,11 @@ public static function getCluster(): ?string public static function getNavigationBadge(): ?string { return CuratorPlugin::get()->getNavigationCountBadge() ? - (Filament::hasTenancy() && Config::get('curator.is_tenant_aware')) ? + (Filament::hasTenancy() && Config::get('curator.is_tenant_aware') ? static::getEloquentQuery() ->where(Config::get('curator.tenant_ownership_relationship_name') . '_id', Filament::getTenant()->id) ->count() - : number_format(static::getModel()::count()) + : number_format(static::getModel()::count())) : null; }