@foreach ($subjects as $subject)
@php
$translations = parse_translation($subject);
$image =
$subject->image && fileExists('lms/subjects', $subject->image) == true
? asset("storage/lms/subjects/{$subject->image}")
: asset('lms/assets/images/placeholder/thumbnail612.jpg');
$title = translate('Do you want to move to Trash');
$text = translate('If you move to Trash, the subject data will be trashed.');
if ($subject->trashed()) {
$title = translate('Are you sure you want to delete this permanently');
$text = translate(
'If you delete it, the subject data will be permanently removed.',
);
}
@endphp