@extends('layouts.app') @section('title', 'Liste des Membres') @section('content')
| MEMBRE | TYPE | ASSIGNATIONS | PERFORMANCE | PERMISSIONS | STATUT | ACTIONS |
|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($membre->name, 0, 1)) }}
{{ $membre->name }}
@if($membre->email)
{{ $membre->email }}
@endif
@if($membre->phone)
{{ $membre->phone }} @endif |
@if($membre->type_paiement === 'Commission') {{ $membre->commission_rate }}% @else {{ number_format($membre->monthly_salary, 0) }} MAD @endif |
@if($membre->magasin)
{{ $membre->magasin }}
@endif
@if($membre->service)
{{ $membre->service }} @endif @if(!$membre->magasin && !$membre->service) - @endif |
{{ $membre->total_commandes ?? 0 }}
{{ $membre->confirmees ?? 0 }}
{{ $membre->livrees ?? 0 }}
|
@php $permissions = json_decode($membre->permissions ?? '[]', true); $permCount = count($permissions); @endphp @if($permCount > 0) @else 0 @endif |
status === 'active' ? 'checked' : '' }}
onchange="toggleStatus({{ $membre->id }})"
style="cursor: pointer; width: 32px; height: 18px;">
|
|
Commencez par ajouter votre premier membre.