@extends('layout.index') @section('title', 'Module List') @section('content') Modules List Home Modules Modules List @if ($message = Session::get('success')) {{ $message }} × @elseif ($message = Session::get('error')) {{ $message }} × @endif Add Module Sr.No Module Name Module Caption Module Link Module Icon Status Sort Order Action @if ($aModules) @php $i = 0; $orders = config('custom.module_sort_order'); $data = array(); @endphp @foreach ($aModules as $val) @php $data[] = $val->sort_order @endphp @endforeach @foreach ($aModules as $val) @php $i++; @endphp {{ $i }} {{ $val->module_name }} {{ $val->module_caption }} {{ $val->module_link }} active ? 'checked' : '' }} onclick="change_status(event.target, {{ $val->id }});" /> @php @endphp -Select- @foreach ($orders as $key => $value) @php $selected = ''; if ($key == $val->sort_order) { $selected = 'selected'; } @endphp @if(!in_array($key,$data) || $key == $val->sort_order) {{ $value }} @endif @endforeach @endforeach @endif