@extends('admin.layout') @section('content') Add Demo Product Dashboard Demo Product Product List Add Demo Product @csrf Category {{-- Sub --}} {{-- --}} Select Category @if(!empty($categories)) @foreach($categories as $category) {!! $category->name !!} @endforeach @endif @if ($errors->has('category')) {{ $errors->first('category') }} @endif Product Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif Type Select Type Course Testseries Book @if ($errors->has('type')) {{ $errors->first('type') }} @endif Short Description @if ($errors->has('short_desc')) {{ $errors->first('short_desc') }} @endif Description @if ($errors->has('description')) {{ $errors->first('description') }} @endif Youtube Url @if ($errors->has('videoUrl')) {{ $errors->first('videoUrl') }} @endif Features @if ($errors->has('features')) {{ $errors->first('features') }} @endif Author Select Author @if(!empty($teachers)) @foreach($teachers as $teacher) {!! $teacher->username !!} @endforeach @endif @if ($errors->has('teacher_id')) {{ $errors->first('teacher_id') }} @endif Image Choose file @if ($errors->has('image')) {{ $errors->first('image') }} @endif Status Active Inactive @if ($errors->has('status')) {{ $errors->first('status') }} @endif Submit @endsection @push('footer-script') @endpush