i tried everything for some reason i keep getting this error even tho im selecting that one thing with that one id and when i dd it on the controller it gets it right but in the view its giving the error heres
$affilliate = Affiliate::find($id);
if (App::getLocale() == 'ar') {
$affilliate->TitleEn = $affilliate->TitleAr;
$affilliate->DescriptionEn = $affilliate->DescriptionAr;
$affilliate->ContentEn = $affilliate->ContentAr;
}
if (App::getLocale() == 'ur') {
$affilliate->TitleEn = $affilliate->TitleUr;
$affilliate->DescriptionEn = $affilliate->DescriptionUr;
$affilliate->ContentEn = $affilliate->ContentUr;
}
if (App::getLocale() == 'ch') {
$affilliate->TitleEn = $affilliate->TitleCh;
$affilliate->DescriptionEn = $affilliate->DescriptionCh;
$affilliate->ContentEn = $affilliate->ContentCh;
}
return view('affilliates.affilliate-details')
->with('Affiliates', $affilliate);
and heres my view
<div class="row">
<div class="col-xs-12">
<h3 class="orange-heading">{{$Affiliates->TitleEn}}</h3>
<hr class="orange-hr pull-left">
</div>
<div class="col-xs-12 lead">
<p>{!! $Affiliates->ContentEn !!} </p>
</div>
</div>