603 0 0 0
Last Updated : 2025-04-29 01:03:23
access elements from collection based on relationships
you can access element with where condition in blade itself just like this
just use relation like this model() instead of model only
{{ $course->schedules()->where('start_date', '>=', Carbon\Carbon::now()->toDateString())->orderby('start_date', 'asc')->first()->start_date }}