PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
education
@extends('admin.layout.adminMasterLayout') @section('title', 'Education List') @section('content') <div class="content-wrapper"> @include('admin.education.category.list') <div> <a href="{{ route('educationQuestion.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="card-title">Education List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Question</th> <th>Answer</th> <th>Category</th> <th>Action</th> </tr> </thead> <tbody> @forelse($educationQuestions as $educationQuestion) <tr> <td> {{ $educationQuestion->question }} </td> <td> {!! Str::limit($educationQuestion->answer, 10) !!} </td> <td> {{ isset($educationQuestion->category) ? $educationQuestion->category->name : '--' }} </td> <td> <a href="{{ route('educationQuestion.edit', $educationQuestion) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('educationQuestion.destroy', $educationQuestion->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="btn btn-primary btn-sm" style="cursor: pointer;" onclick="return confirm('Are you sure?')"> Delete </button> </form> </div> </td> </tr> @empty <td colspan="4">No Question(s) Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $educationQuestions->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[+]
category
[+]
text
[-] list.blade.php
[edit]