@php
    $title = '';
@endphp

@switch ($data->status)
    @case('pending')
        @php
            $title = '工单挂起';
        @endphp
        @break

    @case('open')
        @php
            $title = '工单投递成功，并且已开启';
        @endphp
        @break

    @case('user_replied')
        @php
            $title = '用户已回复';
        @endphp
        @break

    @case('closed')
        @php
            $title = '已结单';
        @endphp
        @break

    @case('replied')
        @php
            $title = '工作人员已回复';
        @endphp
        @break

    @case('on_hold')
        @php
            $title = '挂起';
        @endphp
        @break

    @case('in_progress')
        @php
            $title = '正在处理中';
        @endphp
        @break

    @case('error')
        @php
            $title = '投递失败';
        @endphp
        @break

    @case('read')
        @php
            $title = '工作人员已读';
        @endphp
        @break

    @case('user_read')
        @php
            $title = '用户已读';
        @endphp
        @break

    @default
        @php
            $title = '状态更新';
        @endphp
        @break
@endswitch

# 标题: {{ $title }}

@if ($data->module)
    # 模块: {{ $data->module->name }}
@endif

## 客户 {{ $data->user->name }}
##### 邮箱 {{ $data->user->email }}
##### 余额 {{ $data->user->balance }} 元

# {{ $data->id }}#{{ $data->title }}

{{ $data->content }}
