@extends('layouts.app') @section('title', 'User Details') @section('content')
| Name | Role | Status | ||
|---|---|---|---|---|
| {{ $sub->name }} | {{ ucwords(str_replace('_', ' ', $sub->roles->first()?->name ?? 'N/A')) }} | {{ $sub->email }} | {{ ucfirst($sub->status) }} | View |
| Customer Name | Contact | Projects | Customer Status | |
|---|---|---|---|---|
| {{ $customer->name }} |
{{ $customer->email }}
{{ $customer->phone ?? '—' }}
|
@if ($customer->projects->count() > 0)
@foreach ($customer->projects as $proj)
@else
—
@endif
{{ $proj->project_code }}
{{ ucfirst(str_replace('_', ' ', $proj->status)) }}
@endforeach
|
{{ ucfirst($customer->status) }} | View |
| Project Code | Project Name | Customer | Status | Role | |
|---|---|---|---|---|---|
| {{ $project->project_code }} | {{ $project->project_name }} | {{ $project->customer?->name ?? '—' }} | {{ ucfirst(str_replace('_', ' ', $project->status)) }} | {{ ucfirst($membership->role ?? 'Team Member') }} | View |