@extends('layouts.admin') {{trans('home.my_tasks')}} @section('content')
@foreach($tasks as $my_task) @if($my_task->created_by==auth()->id()) @else @endif @endforeach
{{trans('home.crm_employee')}} منشأ المهمة {{trans('home.task_status')}} {{trans('home.priority')}} {{trans('home.date')}} {{trans('home.time')}} {{trans('home.task_type')}} {{trans('home.client')}} {{trans('home.phone')}} {{trans('home.email')}} {{trans('home.note')}} {{trans('home.edit')}}
@foreach($my_task->employees() as $employee) {{ $employee->name() }} @endforeach {{$my_task->creator?->name()}} {{ __('home.'.$my_task->status) }} @if($my_task->status === 'delayed' ) {{$my_task->delay_reason??'لم يتم تحديد السبب'}} @endif {{__('home.'.$my_task->priority)}} {{$my_task->date}} {{$my_task->time? \Carbon\Carbon::createFromFormat('H:i', $my_task->time)->format('h:i A') :''}} {{$my_task->task_type}} {{$my_task->crm_sms->client?->name}} {{$my_task->crm_sms->client->phone??$my_task->crm_sms->client?->phone2}} {{$my_task->crm_sms->client?->email}} {{$my_task->note}} {{ trans('home.edit') }} -
@endsection