@extends('admin.layout') @section('content') Add Product Dashboard Product List Add Product Add Product Product List @csrf Category * Select Category @if (!empty($categories)) @foreach ($categories as $category) {!! $category->name !!} @endforeach @endif @if ($errors->has('category')) {{ $errors->first('category') }} @endif Type * Select Type Course Testseries Book @if ($errors->has('type')) {{ $errors->first('type') }} @endif Product Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif Short Description * @if ($errors->has('short_desc')) {{ $errors->first('short_desc') }} @endif Description * @if ($errors->has('description')) {{ $errors->first('description') }} @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 Youtube Url * @if ($errors->has('videoUrl')) {{ $errors->first('videoUrl') }} @endif {{-- Views * @if ($errors->has('views')) {{ $errors->first('views') }} @endif --}} Features * @if ($errors->has('features')) {{ $errors->first('features') }} @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