@if(Auth::user()->hasRole('Admin') || Auth::user()->hasRole('Super'))
@if($auth_data['is_admin'] || $auth_data['is_super_admin']) {{ ucfirst($job->user->company_name) }} - {{ $job->internal_id }} - {{ $job->part }} - {{ @$total }} @if ($jobView) @else @endif {{ ucfirst($job->name) }} @endif @if($auth_data['is_customer']) @if($job->submitted) @else @endif {{ $job->name }} @endif @if($job->media->count()) @endif @php $total = $job->comments->count(); $count = 0; foreach ($job->comments as $comment){ $count += $comment->readers->where('id', Auth::user()->id)->count(); } $unread = $total-$count; @endphp @if($unread) {{ $unread }} @endif
@if($job->job_type == "Carcase") {{ $job->material_type == 'other' ? $job->other_material : $job->material_type }} @elseif ($job->job_type == "Doors/Panels") @if ( !is_null($job->supplier) || !is_null($job->colour) || !is_null($job->thickness)) @if ( !is_null($job->supplier) ) {{ $job->supplier }} - @endif @if ( !is_null($job->colour) ) {{ $job->colour }} - @endif @if ( !is_null($job->thickness) ) {{ $job->thickness }} @endif @if (!is_null($job->edge_tape)) ({{ $job->edge_tape }}m) @endif @else White Satin @endif @else Hardware @endif
@endif @if(Auth::user()->hasRole('Customer'))
{{ $job->name }}
@endif