{{-- @extends('layouts.application') --}} {{ env('APP_NAME') }} | SMM | Dashboard {{-- @section('content') --}} @if (!Auth::user()->signature)
@csrf @method('PUT') @endif

Approvals

@foreach ($job_drafts as $job_draft) @endforeach
Project Development Status
{{ $job_draft->jobOrder->title }} - {{ Str::title(str_replace('_', ' ', $job_draft->type)) }} @if (auth()->user()->role_id == '1' and $job_draft->status == 'completed') Approved @elseif ( (auth()->user()->role_id == '2' && ($job_draft->status == 'completed' || $job_draft->status == 'Submitted to Top Management' || $job_draft->status == 'Submitted to Client' || $job_draft->status == 'Submitted to Operations Supervisor')) || (auth()->user()->role_id == '5' && ($job_draft->status == 'Submitted to Client' || $job_draft->status == 'completed')) || (auth()->user()->role_id == '6' && ($job_draft->status == 'Submitted to Client' || $job_draft->status == 'completed' || $job_draft->status == 'Submitted to Top Management'))) Signed @elseif ( (auth()->user()->role_id == '3' && ($job_draft->status == 'Submitted to Assistant Supervisor' || $job_draft->status == 'completed' || $job_draft->status == 'Submitted to Top Management' || $job_draft->status == 'Submitted to Client')) || (auth()->user()->role_id == '4' && ($job_draft->status == 'Submitted to Assistant Supervisor' || $job_draft->status == 'completed' || $job_draft->status == 'Submitted to Top Management' || $job_draft->status == 'Submitted to Client'))) Created @elseif (auth()->user()->role_id == '1' and $job_draft->status == 'Submitted to Client')

Approve

@elseif (auth()->user()->role_id == '2' and $job_draft->status == 'Submitted to Assistant Supervisor')

Sign

@elseif (auth()->user()->role_id == '3' and $job_draft->status == 'Waiting for Content Writer Approval' || $job_draft->status == 'Waiting for Graphic Designer Approval')
@csrf @method('PUT')
@elseif (auth()->user()->role_id == '3' and $job_draft->status == 'pending')

Create

@elseif (auth()->user()->role_id == '4' and $job_draft->status == 'Waiting for Content Writer Approval' || $job_draft->status == 'Waiting for Graphic Designer Approval')
@csrf @method('PUT')
@elseif (auth()->user()->role_id == '4' and $job_draft->status == 'pending')

Create

@elseif (auth()->user()->role_id == '5' and $job_draft->status == 'Submitted to Top Management')

Sign

@elseif (auth()->user()->role_id == '6' and $job_draft->status == 'Submitted to Operations Supervisor')

Sign

@endif @if ( ($job_draft->status == 'completed' && auth()->user()->role_id == '1') || (($job_draft->status == 'Submitted to Assistant Supervisor' || $job_draft->status == 'Submitted to Top Management' || $job_draft->status == 'Submitted to Client' || $job_draft->status == 'completed') && (auth()->user()->role_id == '3' || auth()->user()->role_id == '4')) || (auth()->user()->role_id == '2' && ($job_draft->status == 'Submitted to Top Management' || $job_draft->status == 'Submitted to Client' || $job_draft->status == 'Submitted to Operations Supervisor' || $job_draft->status == 'completed')) || (auth()->user()->role_id == '5' && ($job_draft->status == 'Submitted to Client' || $job_draft->status == 'completed')) || (auth()->user()->role_id == '6' && ($job_draft->status == 'Submitted to Client' || $job_draft->status == 'completed' || $job_draft->status == 'Submitted to Top Management'))) @endif
@if (auth()->user()->role_id == 3 || auth()->user()->role_id == 4 || auth()->user()->role_id == 2 || auth()->user()->role_id == 6)

Revisions

@foreach ($job_drafts_revisions as $job_draft_revision) @endforeach
Project Development Status
{{ $job_draft_revision->jobOrder->title }} - {{ Str::title(str_replace('_', ' ', $job_draft_revision->type)) }} @if (auth()->user()->role_id == 3)

Revise

@elseif (auth()->user()->role_id == 4)

Revise

@elseif (auth()->user()->role_id == 2)

Revise

@elseif (auth()->user()->role_id == 6)

Revise

@endif
@endif
@if (auth()->user()->role_id == 2 || auth()->user()->role_id == 6)

Tasks

@foreach ($my_tasks as $my_task) @if ( ($my_task->contentWriter?->name == Auth::user()->name && $my_task->type == 'content_writer') || ($my_task->graphicDesigner?->name == Auth::user()->name && $my_task->type == 'graphic_designer')) @endif @endforeach
Project Development Status
{{ $my_task->jobOrder->title }} - {{ $my_task->type }} @if (auth()->user()->role_id == 2) @if ( $my_task->status == 'Waiting for Content Writer Approval' || $my_task->status == 'Waiting for Graphic Designer Approval')
@csrf @method('PUT')
@else

Create

@endif @elseif (auth()->user()->role_id == 6) @if ( $my_task->status == 'Waiting for Content Writer Approval' || $my_task->status == 'Waiting for Graphic Designer Approval')
@csrf @method('PUT')
@else

Create

@endif @endif
@endif
{{-- Bottom Part --}} {{-- --}}
@for ($i = 1; $i <= 5; $i++) @for ($i = 1; $i <= 4; $i++) @endfor @endfor
{{-- @endsection --}} {{-- --}}