@extends('admin.layout') @section('content') Edit Product Dashboard Product List Edit Product Edit 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 Product Name @if ($errors->has('pname')) {{ $errors->first('pname') }} @endif Type Select Type type == 'course' ? 'selected' : '' }}>Course type == 'testseries' ? 'selected' : '' }}> Testseries type == 'book' ? 'selected' : '' }}>Book @if ($errors->has('type')) {{ $errors->first('type') }} @endif Short Description {{ $product->short_desc }} @if ($errors->has('short_desc')) {{ $errors->first('short_desc') }} @endif Description {{ $product->description }} @if ($errors->has('description')) {{ $errors->first('description') }} @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 Author {{-- Sub --}} {{-- --}} Select Author @if (!empty($teachers)) @foreach ($teachers as $teacher) id == $product->teacher_id ? 'selected' : '' }}> {!! $teacher->username !!} @endforeach @endif @if ($errors->has('teacher_id')) {{ $errors->first('teacher_id') }} @endif Sort Order @if ($errors->has('sort_order')) {{ $errors->first('sort_order') }} @endif Slug @if ($errors->has('slug')) {{ $errors->first('slug') }} @endif Image Choose file @if ($errors->has('image')) {{ $errors->first('image') }} @endif Status status == '1' ? 'selected' : '' }}>Active status == '0' ? 'selected' : '' }}>Inactive @if ($errors->has('status')) {{ $errors->first('status') }} @endif Submit @endsection @push('footer-script') @endpush