diff --git a/app/View/Components/NamespaceComponent.php b/app/View/Components/NamespaceComponent.php new file mode 100644 index 0000000..e5eb7e8 --- /dev/null +++ b/app/View/Components/NamespaceComponent.php @@ -0,0 +1,36 @@ +name = $name; + $this->color = $color; + $this->key = $key; + $this->description = $description; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\View\View|string + */ + public function render() + { + return view('components.namespace-component'); + } +} diff --git a/resources/views/components/namespace-component.blade.php b/resources/views/components/namespace-component.blade.php new file mode 100644 index 0000000..c9ad00f --- /dev/null +++ b/resources/views/components/namespace-component.blade.php @@ -0,0 +1,22 @@ +
+
+
+
+ {{$name}} +
+
+ + +
+

{{$description}}

+
+
+ + +
+ +
\ No newline at end of file diff --git a/resources/views/namespaces/index.blade.php b/resources/views/namespaces/index.blade.php index c9c71ee..5d3a973 100644 --- a/resources/views/namespaces/index.blade.php +++ b/resources/views/namespaces/index.blade.php @@ -21,33 +21,14 @@
@foreach (config('karudhaas.topic_filters') as $key => $namespace) -
- - -
+ @endforeach - - -
@endsection \ No newline at end of file diff --git a/resources/views/namespaces/show.blade.php b/resources/views/namespaces/show.blade.php index b835003..ea60483 100644 --- a/resources/views/namespaces/show.blade.php +++ b/resources/views/namespaces/show.blade.php @@ -1,7 +1,7 @@ @extends('layouts.app') @section('content') - + @endsection \ No newline at end of file