@extends('admin.layouts.app') @section('content')

{{ $section->title }}

@if(Auth::user()->role_id == 2) @else
Add video @endif
@if(count($videos) > 0) @php $i=0; @endphp @foreach($videos as $result) @endforeach @endif
ID Title Image Status Action
{{ ++$i }} {{ $result->title }}
    @if($result->status == 1)
  • Active
  • @else
  • Inactive
  • @endif
@php $prodID = Crypt::encrypt($result->id); @endphp @if(Auth::user()->role_id == 2) @else
{{ Form::open(['route' => ['videos.destroy', $result->id], 'method' => 'delete']) }} {{ Form::button('', [ 'type' => 'submit', 'class' => 'btn btn-dim btn-danger']) }} {{ Form::close() }}
@endif
@endsection