@php use App\Category; use App\Brand; $categories = Category::orderBy('name', 'asc')->get(); $main_categories = Category::orderBy('name','asc')->where('parent_id', Null)->get(); $sub_categories = Category::orderBy('name','asc')->whereNotNull('parent_id')->get(); $brands = Brand::orderBy('name', 'asc')->get(); @endphp @extends('backend.layouts.vendormaster') @section('content') @section('css') @endsection @section('save_button') Add @endsection
Add New Product
@include('backend.layouts.error')
{{ csrf_field() }}
{{--

@foreach($attributes as $attribute) @php $attribute_ids = unserialize($attributeset->attribute_id); @endphp @foreach ($attribute_ids as $attribute_id) @if ($attribute->id == $attribute_id) {{ $attribute->name }}
@php $options = unserialize($attribute->options); @endphp @foreach($options as $option)
@endforeach

@endif @endforeach @endforeach
--}}




Add More
@endsection @section('script') @endsection