{{__('messages.ticket detail & history')}} {{($ticket->account_id)?' - '.$ticket->account->name:'-'}}

@can('share ticket by mail')
md:max-w-3xl {{__('send')}}

{{__('messages.share ticket with email')}}

shareTicketViaMail @livewire('add-button-component', ['value' => __('messages.share')])
To
{{trans_choice('messages.users',5)}} @foreach(\App\Models\User::where('active',1)->orderBy('name')->orderBy("name")->get() as $user)
  • @endforeach

    {!! implode('
    ',$users_to_emails) !!}


    {{__('messages.team')}} team_id_to @foreach(\App\Models\Team::orderBy('name')->where('personal_team',0)->get() as $team) @endforeach
    CC
    {{trans_choice('messages.users',5)}} @foreach(\App\Models\User::where('active',1)->orderBy('name')->get() as $user)
  • @endforeach

    {!! implode('
    ',$users_cc_emails) !!}


    {{__('messages.team')}} team_id_cc @foreach(\App\Models\Team::orderBy('name')->where('personal_team',0)->get() as $team) @endforeach
    @if ($ticket->account && $ticket->account->email) {{$ticket->account->email}} @endif
    @endcan
    @if($ticket->ticket_source_id)

    {{trans_choice('messages.Sources',1) . " :-" . $ticket->ticket_source->name}}

    @endif

    {{__('hr_messages.Description')}}

    {{$ticket->description}}

    # {{__('messages.from')}} {{__('messages.to')}} {{__('messages.By')}} {{__('messages.comment')}} {{__('messages.Created At')}} @forelse ($ticket->ticket_status_histories as $key =>$ticket_status_history) #{{++$key}} {{__('messages.from')}} status_from_id) style="background-color:{{$ticket_status_history->from_status->color}} @endif "> {{($ticket_status_history->status_from_id)?$ticket_status_history->from_status->name:'-'}} {{__('messages.to')}} status_to_id) style="background-color:{{$ticket_status_history->to_status->color}} @endif "> {{($ticket_status_history->status_to_id)?$ticket_status_history->to_status->name:'-'}} {{__('messages.By')}}{{($ticket_status_history->last_updated_by)?$ticket_status_history->last_updated_by_user->name:''}} {{__('messages.comment')}} @if($ticket_status_history->comment_id) @if($ticket_status_history->comment_detail->url) {{$ticket_status_history->comment_detail->comment}} @else {{$ticket_status_history->comment_detail->comment}} @endif @endif {{__('messages.Created At')}}{{$ticket_status_history->created_at}} {{__('messages.comment')}} @if($ticket_status_history->comment_id) @if($ticket_status_history->comment_detail->url) {{__('messages.download')}} @else - @endif @endif @empty {{__('messages.Empty Result')}} @endforelse
    {{__('messages.update ticket status')}} @if (session()->has('message'))
    {{ session('message') }}
    @endif
    *
    ticket_status_id @php if (auth()->user()->can('close tickets')){ $ticketStatus = \App\Models\TicketStatus::whereNotIn('id',[1])->get(); }else{ $ticketStatus = \App\Models\TicketStatus::whereNotIn('id',[1,3])->get(); } @endphp @foreach($ticketStatus as $status) @endforeach
    *
    Uploading...

    {{__('messages.File Uploaded...')}}

    @if($url && substr($url->getMimeType(),0,6) == "image/")
    @endif

    {{__('messages.ticket concerned users')}}

    # {{ __('messages.User') }} {{ __('messages.message') }} {{ __('messages.Created by') }} {{ __('messages.Created At') }} @forelse ($ticket->ticket_users as $key=>$ticket_user) #{{++$key }} {{ __('messages.User') }} {{ $ticket_user->user->name }} {{ __('messages.message') }} {{ $ticket_user->msg}} {{ __('messages.Created By') }} {{ $ticket_user->created_by ? $ticket_user->created_by_user->name : '-' }} {{ __('messages.Created At') }} {{ $ticket_user->created_at }} @empty {{ __('messages.Empty Result') }} @endforelse