PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
movie
/
bkp
@extends('admin.layouts.adminMasterLayout') @section('title', 'List Category Page') @section('movie_select','active') @section('content') <div class="container-fluid"> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Category List</h1> </div> <div class="card shadow mb-4"> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" id="pageList" width="100%" cellspacing="0"> <thead> <tr> <th>ID</th> <th>MOVIE NAME</th> <th>COVER IMAGE</th> <th>CATEGORY NAME</th> <th>ACTION</th> </tr> </thead> <tbody> @if ($movies->count() > 0 ) @foreach ($movies as $movie) <tr> <td>{{ $movie->id }}</td> <td>{{ $movie->title }}</td> <td> <img src="{{ isset($movie->cover_image) ? asset('storage/movies/'.$movie->cover_image) : asset('admin_assets/images/default-image.png') }}" class="hei-120 wid-120 rounded-circle" alt=""> </td> <td> @foreach ($movie->categories as $category) {{ $category->title }}, @endforeach </td> <td> <a href="{{ route('movie.edit',$movie) }}" class="btn btn-primary frm-btn_handler">Edit</a> <form action="{{ route('movie.destroy',$movie->id) }}" method="POST"> {{ csrf_field() }} @method('DELETE') <button class="btn btn-danger frm-btn_handler d-inline-block">Delete </button> </form> </td> </tr> @endforeach @else <td colspan="7">No data Found!!</td> @endif </tbody> </table> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]