@extends('backend.screens.settings.layout') @section('setting-content')
Add Admin
@php $columns = [ 'SNo.', 'Admin Name', 'Date', 'Email', 'Action' ]; @endphp @forelse($admins as $index => $admin) {{ $index + $admins->firstItem() }} {{ $admin->created_at->format('M d, Y') }} {{ $admin->email }} @php $menus = [ [ 'to' => "#", 'fa-icon' => 'fa fa-edit', 'title' => 'Edit', 'type' => 'modal', 'id' => 'edit-admin-'.$admin->id ], [ 'to' => route('admin.setting.admin.delete', $admin->id), 'fa-icon' => 'fa fa-trash', 'title' => 'Delete', 'class' => 'has-confirmation', 'data-message' => 'Are you sure you want to delete this admin?' ], ]; @endphp @empty Admin not found @endforelse @include('backend.shared.pagination', ['paginator' => $admins])
@csrf
Add
@foreach($admins as $index => $admin)
@csrf
Save
@endforeach @endsection