Example #1
0
function parseData($dataString, $defaultIncrement, $decimal = 2, $sign = 0)
{
    $paramArray = explodeString($dataString);
    //see if the values include a range - if it does it will include the word "to"
    $valueArray = array();
    // the new string
    foreach ($paramArray as $string) {
        if (strpos($string, "to")) {
            $valueArray = array_merge($valueArray, parseRange($string, $defaultIncrement, $decimal, $sign));
        } else {
            $valueArray = array_merge($valueArray, (array) $string);
        }
    }
    //print_r($valueArray);
    //sort the values in the array and remove duplicates
    usort($valueArray, "sorter");
    $valueArray = array_unique($valueArray);
    return $valueArray;
}
						
						<?php 
$tag_array = explodeString($project->tags);
?>

						@foreach($tag_array as $tag) 
							<a class="project-tag" href="{{ url('search/'.$tag) }}">{{ $tag }}</a>
						@endforeach
					
					@endif

					<div class="pull-right">

						@if( $project->authorized_users )
							<?php 
$tag_users = explodeString($project->authorized_users);
?>
							@foreach($tag_users as $user) 
								<a class="project-users" href="{{ url('search/'.$user) }}">{{ $user }}</a>
							@endforeach
						@endif
					</div>

				</div>

			<hr/>
			<section id="comments">

				@foreach(($comments = retrieveComments($project->id)) as $comment)
					<div class="comment">
						<p> {{ retrieveProjectOwner($comment->user_id)}} says ...</p>
	        </tr>


	         @foreach ($phases as $phase)

        	<?php 
$timing = phaseTracker($phase->id);
if ($timing != "Task not started") {
    $elapseTime = secondsToTimeSimple(toSeconds($timing));
} else {
    $elapseTime = "0 : 00 : 00 s";
}
$status = timingCollections($phase->id)['status'];
$status_id = timingCollections($phase->id)['id'];
$created_at = explodeString($phase->created_at);
$updated_at = explodeString($phase->updated_at);
$created = $created_at[0];
$updated = $updated_at[0];
if ($created < $today && $updated < $today) {
    ?>
            	@if( ($phase->user_id != 3) && ($phase->user_id == Auth::user()->id) )

            	dd($phase->user_id)
            	
			          <tr class="project-table trhover">
			          	<td>
			          		<a class="delete" href="javascript:deletePhase('{{ $phase->id }}');">
								<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
							</a>
						</td>
			          	<td><a class="" href="{{ url('searchClientsPhases/'.$phase->client_id) }}">{!! clientName(clientIdentification($phase->project_id)) !!}</a></td>