@extends('dashboard.layout.master') @section('content')
@include('dashboard.layout.navbar') @php $current_user = Auth::user(); if ($current_user) { $allow_access = DB::table('users') ->join('roles', 'users.role', '=', 'roles.id') ->where('users.id', '=', $current_user->id) ->first(); } $form_management = json_decode($allow_access->form_management); array_unshift($form_management, 0); @endphp
Form List
@if($form_management[1] == 31) Create Form @endif
@if($form_management[3] == 33 || $form_management[5] == 35) @endif @foreach($form as $item) @if($form_management[3] == 33 || $form_management[5] == 35) @endif @endforeach
S no Manage Sequence Form NameActions
{{$loop->index + 1}} id])}}'>id])}}' class='btn btn-danger btn-sm'> {{$item->name}} @if($form_management[3] == 33) Edit @endif {{$item->status ? 'Unpublish' : 'Publish' }} @if($form_management[5] == 35) View @endif
@if(session('error')) @endif @if(session('success')) @endif @endsection