@if (!is_null($homeworkComments) && count($homeworkComments) > 0) @foreach ($homeworkComments as $comment) @php $isMine = $comment->user_id === auth()->id() && $comment->user_model === \App\Models\Customer::class; @endphp
@if ($comment->user->profile_photo_path) @else @endif
{{ $comment->user->name }}
{{ $comment->comment }}
@foreach ($comment?->library_files as $file)
الملفات
@foreach ($comment?->library_files as $file) @endforeach
@endforeach
{{-- @if ($isMine)
@endif --}}
@endforeach @else
{{ __('messages.There are no comments') }}
@endif
@php $class = $assignment_file && count($assignment_file) > 0 ? 'h-36' : 'h-24'; @endphp
@if ($assignment_file && count($assignment_file) > 0)
@foreach ($assignment_file as $key => $file)
@endforeach
@endif
@php $class = $assignment_file && count($assignment_file) > 0 ? 'bg-primary' : 'bg-gray'; @endphp
@error('assignment_text')
{{ $message }}
@enderror