@extends('admin.layout.master') @section('content') @if (session()->has('success'))
{{-- Add class .table-bordered --}}
| S.no. | Name | Phone | Type | Status | Enable/Disable | Action | |
|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ ucwords($user->name) }} | {{ $user->email }} | {{ $user->phone }} | {{ $user->type == 1 ? 'Saloon' : ($user->type == 2 ? 'Artist' : 'Unknown Type') }} | @if ($user->status === null) Approve Decline @elseif ($user->status == 1) Approved @else Declined @endif | status === 1 ? 'checked' : '' }} onclick="userAction('{{$user->id}}', this, '{{$user->status}}')"> | {{-- Edit --}} Delete |