@if(!is_null($project->client))
@if(!is_null($project->client->client))
- @lang('modules.client.companyName')
- {{ $project->client->client[0]->company_name }}
@endif
- @lang('modules.client.clientName')
- {{ ucwords($project->client->name) }}
- @lang('modules.client.clientEmail')
- {{ $project->client->email }}
@else @lang('messages.noClientAddedToProject') @endif {{--Custom fields data--}} @if(isset($fields))
@foreach($fields as $field)
- {{ ucfirst($field->label) }}
-
@if( $field->type == 'text') {{$project->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'password')
{{$project->custom_fields_data['field_'.$field->id] ?? '-'}}
@elseif($field->type == 'number') {{$project->custom_fields_data['field_'.$field->id]
?? '-'}} @elseif($field->type == 'textarea') {{$project->custom_fields_data['field_'.$field->id]
?? '-'}} @elseif($field->type == 'radio') {{ !is_null($project->custom_fields_data['field_'.$field->id])
? $project->custom_fields_data['field_'.$field->id] : '-' }}
@elseif($field->type == 'select') {{ (!is_null($project->custom_fields_data['field_'.$field->id])
&& $project->custom_fields_data['field_'.$field->id] != '') ?
$field->values[$project->custom_fields_data['field_'.$field->id]]
: '-' }} @elseif($field->type == 'checkbox')
@foreach($field->values as $key => $value)
@if($project->custom_fields_data['field_'.$field->id] != '' && in_array($value ,explode(', ', $project->custom_fields_data['field_'.$field->id]))) - {{$value}}
@endif
@endforeach
@elseif($field->type == 'date')
{{ \Carbon\Carbon::parse($project->custom_fields_data['field_'.$field->id])->format($global->date_format)}}
@endif
@endforeach
@endif {{--custom fields data end--}}