@extends('backoffice.admin.layout') @section('content') @php $packages = packages()->find($id); $features = features()->where('type', $packages->type); $relations = relations(); @endphp {{-- @dd(features()->where('type', $package->type)) --}}

Configuration du package {{$packages->name}}

@csrf
@foreach ($features as $feature)
{{$feature->name}}
where('package_id',$id) ->where('package_feature_id', $feature->id)->first()) @if ($relations->where('package_id',$id) ->where('package_feature_id', $feature->id)->first()->hasit == "yes") checked @endif @endif >
@endforeach
@endsection