some styling in tables

This commit is contained in:
2024-09-27 16:48:05 +03:00
parent 19931cb4d1
commit 7574d67d80
4 changed files with 32 additions and 5 deletions
+18
View File
@@ -45,3 +45,21 @@ if (!function_exists('schemas_path')) {
return storage_path("lucent/lucent.schemas.json");
}
}
if (!function_exists('lucent_file')) {
function lucent_file(\Lucent\Record\QueryRecord $record): string
{
$path = $record->_file->path;
return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] ."/". $path;
}
}
if (!function_exists('lucent_image')) {
function lucent_image(\Lucent\Record\QueryRecord $record, string $template): string
{
$path = $record->_file->path;
return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] . "/templates/$template/$path";
}
}