@extends('home.layouts.master') @section('content')
@php if($news->user->type=='admin'){ $storagePath = config('filesystems.asset').'/'.'clients'.'/'.$news->user->name.'/notice'; $author = $news->user->client->company_name; }elseif($news->user->type=='moderator'){ $storagePath = config('filesystems.asset').'/'.'notice'; $author = $news->user->admin->full_name; }else{ $storagePath = config('filesystems.asset').'/'.'notice'; $author = 'admin'; } @endphp

{{$news->title}}

@if (isset($news->image)) @php $url = $storagePath.'/'.$news->image; $uploadedFile = pathinfo($url); $old_filename = $uploadedFile['filename']; $extension = $uploadedFile['extension']; $imageLink = $storagePath.'/'.$old_filename.'.webp'; @endphp {{$news->title}} @else @endif
{!! $news->details !!}
@if(count($news_relateds)>0)
Related Scholarship
@endif
@endsection