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

{{ $section->title }}

@if(Auth::user()->role_id == 2) @else @endif
@if( $albums ) @php $i = 0; @endphp @foreach( $albums as $result ) @endforeach @endif
ID Album Name Album image Status Action
{{ ++$i }} {{ucfirst($result->album_name)}}
    @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' => ['album.destroy', $result->id], 'method' => 'delete']) }} {{ Form::button('', [ 'type' => 'submit', 'class' => 'btn btn-dim btn-danger']) }} {{ Form::close() }}
@endif
@endsection