@extends('layouts.admin') @section('content')

Edit SEO Tasks

@if($taskSeo) @if($user->role_id == 1 || $user->role_id == 2 )
{!! Form::model($taskSeo,['method' => 'PATCH', 'action'=> ['App\Http\Controllers\TaskSeoController@update',$taskSeo->id],'files'=>true]) !!} @csrf
{!! Form::label('Subject','Subject:') !!} {!! Form::text('subject', null, ['class' => 'form-control']) !!}
{!! Form::label('Assignment','Assignment:') !!} {!! Form::text('Assignment', null, ['class' => 'form-control']) !!}
{!! Form::label('assignTo','assignTo:') !!} {!! Form::select('assignment_id',$userList, null, ['class' => 'form-control']) !!}
{!! Form::label('file_id','File:') !!} {{-- {!! Form::file('file_id', null, ['class' => 'form-controll']) !!} --}}
{!! Form::label('deliverytime','deliverytime:') !!}
{!! Form::label('priority','Priority:') !!} {!! Form::select('Priority',array('4'=>4,'3'=>3,"2"=>2,"1"=>1,"0"=>'urgent'),$taskSeo->Priority, ['class' => 'form-control']) !!}
{!! Form::label('dueon','dueon:') !!}
{{--
{!! Form::label('status','status:') !!} {!! Form::select('status',array(3=>"skipped",2=>"Not started",1=>"done",0=>"in progress"), null, ['class' => 'form-control']) !!}
--}}
{!! Form::label('Verification','Verification:') !!} {!! Form::select('Verification',array('pending'=>'pending','accept'=>'accept','reject'=>'reject'), $taskSeo->Verification, ['class' => 'form-control']) !!}
@if($user->role_id == 1)
{!! Form::label('comment','comment:') !!} {!! Form::text('comment_admin', null, ['class' => 'form-control']) !!}
@elseif($user->role_id == 2)
{!! Form::label('comment','comment:') !!} {!! Form::text('comment_user', null, ['class' => 'form-control']) !!}
@endif
{!! Form::submit('Update task', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
@foreach($taskSeo->files as $file) @endforeach
Files deleted
{{$file->name}}
@csrf @method('DELETE')
employee comment
{{$taskSeo->comment_miniadmin}}
@if($user->role_id == 1)
the admin comment
{{$taskSeo->comment_admin}}
@elseif($user->role_id == 2)
the manager comment
{{$taskSeo->comment_user}}
@endif
Status
{{$taskSeo->Status}}
@endif @endif
@endsection