@component('mail::message')
@if($locale === 'ar')
<div dir="rtl" style="text-align: right;">
# {{ __('emails.timeline_update_title', [], $locale) }}

{{ __('emails.timeline_update_greeting', ['name' => $user->full_name ?? $user->company_name], $locale) }}

{{ __('emails.timeline_update_body', ['case_name' => $timeline->case_name], $locale) }}

**{{ __('emails.case_details', [], $locale) }}**
- {{ __('emails.case_name', [], $locale) }} {{ $timeline->case_name }}
@if($timeline->case_reference)
- {{ __('emails.case_reference', [], $locale) }} {{ $timeline->case_reference }}
@endif
- {{ __('emails.update_date', [], $locale) }} {{ $timelineUpdate->created_at->format('Y-m-d H:i') }}

**{{ __('emails.update_content', [], $locale) }}**

{!! $timelineUpdate->update_text !!}

@component('mail::button', ['url' => route('login')])
{{ __('emails.view_timeline', [], $locale) }}
@endcomponent

{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
</div>
@else
# {{ __('emails.timeline_update_title', [], $locale) }}

{{ __('emails.timeline_update_greeting', ['name' => $user->full_name ?? $user->company_name], $locale) }}

{{ __('emails.timeline_update_body', ['case_name' => $timeline->case_name], $locale) }}

**{{ __('emails.case_details', [], $locale) }}**
- {{ __('emails.case_name', [], $locale) }} {{ $timeline->case_name }}
@if($timeline->case_reference)
- {{ __('emails.case_reference', [], $locale) }} {{ $timeline->case_reference }}
@endif
- {{ __('emails.update_date', [], $locale) }} {{ $timelineUpdate->created_at->format('Y-m-d H:i') }}

**{{ __('emails.update_content', [], $locale) }}**

{!! $timelineUpdate->update_text !!}

@component('mail::button', ['url' => route('login')])
{{ __('emails.view_timeline', [], $locale) }}
@endcomponent

{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
@endif
@endcomponent
