This commit is contained in:
F4ilji
2025-05-22 15:22:19 +05:00
parent 791a56ca4d
commit 9c22e7601c
7 changed files with 42 additions and 190 deletions
@@ -7,7 +7,7 @@ use App\Containers\Schedule\UI\WEB\Transformers\EducationalGroupResource;
use App\Ship\Contracts\SeoServiceInterface;
use App\Ship\Controllers\Controller;
use App\Ship\Enums\Education\FormEducation;
use App\Ship\Requests\Request;
use Illuminate\Http\Request;
class ClientScheduleController extends Controller
{
@@ -21,9 +21,7 @@ class ClientScheduleController extends Controller
$query->whereRaw('LOWER(title) like ?', ["%".strtolower($search)."%"]);
})
->when(request()->input('favorite'), function ($query, $favorite) {
$query->whereHas('schedules', function ($query) use ($favorite) {
$query->whereIn('id', $favorite);
});
$query->whereIn('id', $favorite);
})
->when(request()->input('form'), function ($query, $form) {
$query->where('education_form_id', FormEducation::fromName($form)->value);
+3 -3
View File
@@ -151,7 +151,7 @@ class PostForm
->resize(50)
->imageEditor()
->helperText('Загрузите главное изображение для новости')
->maxSize(2048)
->maxSize(20480)
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp'])
->imagePreviewHeight('150')
->panelLayout('integrated'),
@@ -167,7 +167,7 @@ class PostForm
->panelLayout('grid')
->helperText('Загрузите дополнительные изображения для галереи')
->maxFiles(10)
->maxSize(2048)
->maxSize(20480)
->acceptedFileTypes(['image/jpeg', 'image/png'])
->imagePreviewHeight('150'),
]),
@@ -253,7 +253,7 @@ class PostForm
->resize(50)
->imageEditor()
->required()
->maxSize(2048)
->maxSize(50000)
->helperText('Загрузите фоновое изображение для слайда')
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp']),
ToggleButtons::make('slide.image.shading')
+1 -1
View File
@@ -69,7 +69,7 @@ class ScheduleResource extends Resource
->label('Файл PDF')
->required()
->acceptedFileTypes(['application/pdf'])
->maxSize(5120) // 5MB
->maxSize(10000)
->disk('public')
->directory('schedules')
->downloadable()