@extends('layouts.admin') @section('page-title') {{ __('Email Templates') }} @endsection @section('action-button') {{ __('Generate with AI') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @push('scripts') @endpush @section('content')
{{ Form::model($emailTemplate, ['route' => ['email_template.update', $emailTemplate->id], 'method' => 'PUT']) }}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('name', null, ['class' => 'form-control font-style', 'disabled' => 'disabled']) }}
{{ Form::label('from', __('From'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('from', null, ['class' => 'form-control font-style', 'required' => 'required', 'placeholder' => __('Enter From Name')]) }}
{{ Form::hidden('lang', $currEmailTempLang->lang, ['class' => '']) }}
{{ Form::close() }}
{{ __('Variables') }}
@if ($emailTemplate->name == 'New Client')

{{ __('App Name') }} : {app_name}

{{ __('User Name') }} : {user_name}

{{ __('App Url') }} : {app_url}

{{ __('Email') }} : {email}

{{ __('Password') }} : {password}

@elseif($emailTemplate->name == 'User Invited')

{{ __('App Name') }} : {app_name}

{{ __('User Name') }} : {user_name}

{{ __('App Url') }} : {app_url}

{{ __('Workspace Name') }} : {workspace_name}

{{ __('Owner Name') }} : {owner_name}

@elseif($emailTemplate->name == 'Project Assigned')

{{ __('App Name') }} : {app_name}

{{ __('User Name') }} : {user_name}

{{ __('App Url') }} : {app_url}

{{ __('Project Name') }} : {project_name}

{{ __('Project Status') }} : {project_status}

{{ __('Owner Name') }} : {owner_name}

@elseif($emailTemplate->name == 'Contract Shared')

{{ __('Client Name') }} : {client_name}

{{ __('Contract Subject') }} : {contract_subject}

{{ __('Project Name') }} : {project_name}

{{ __('Contract Type') }} : {contract_type}

{{ __('Contract value') }} : {value}

{{ __('Start Date') }} : {start_date}

{{ __('End Date') }} : {end_date}

@endif
@foreach ($languages as $key => $lang) {{ Str::ucfirst($lang) }} @endforeach
{{ Form::model($currEmailTempLang, ['route' => ['store.email.language', $currEmailTempLang->parent_id], 'method' => 'POST']) }}
{{ Form::label('subject', __('Subject'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('subject', null, ['class' => 'form-control font-style', 'required' => 'required']) }}
{{ Form::label('content', __('Email Message'), ['class' => 'col-form-label text-dark']) }} {{ Form::textarea('content', $currEmailTempLang->content, ['class' => 'summernote-simple', 'id' => 'content', 'required' => 'required']) }}
{{ Form::hidden('lang', null) }}
{{ Form::close() }}
@endsection