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

Edit Developers' Tasks

@include('includes.form_error')
@if($tasks) @if($user->role_id == 2)
{!! Form::model($tasks,['method' => 'PATCH', 'action'=> ['App\Http\Controllers\TaskWebController@update',$tasks->id],'files'=>true]) !!}
{!! Form::label('Subject','Subject:') !!} {!! Form::text('subject', null, ['class' => 'form-control']) !!}
{!! Form::label('Assignment','Assignment:') !!} {!! Form::text('Assignment', null, ['class' => 'form-control']) !!}
{!! Form::label('file_id','File:') !!} {!! Form::file('file_id', null, ['class' => 'form-controll']) !!}
{!! Form::label('comment','comment:') !!} {!! Form::textarea('comment_user', null, ['class' => 'form-control']) !!}
{{ Form::hidden('assign', 'dontexist') }}
{!! Form::submit('Update task', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
admin comment
{{$tasks->comment_admin}}
developer comment
{{$tasks->comment_developer}}
Status
{{$tasks->Status}}
@endif @if($user->role_id == 1)
{!! Form::model($tasks,['method' => 'PATCH', 'action'=> ['App\Http\Controllers\TaskWebController@update',$tasks->id],'files'=>true]) !!}
{!! Form::label('Subject','Subject:') !!} {!! Form::text('subject', null, ['class' => 'form-control']) !!}
{!! Form::label('Assignment','Assignment:') !!} {!! Form::text('Assignment', 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(3=>'3',2=>'2',1=>'1',0=>'urgent'), null, ['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(2=>'',1=>'accept',0=>'reject'), null, ['class' => 'form-control']) !!}
{!! Form::label('comment','comment:') !!} {!! Form::text('comment_admin', null, ['class' => 'form-control']) !!}
{!! Form::submit('Update task', ['class'=>'btn btn-primary']) !!}
{{ Form::hidden('assign', 'dontexist') }} {!! Form::close() !!}
developer comment
{{$tasks->comment_developer}}
user comment
{{$tasks->comment_user}}
Status
{{$tasks->Status}}
@endif @if($user->role_id == 3)
{!! Form::model($tasks,['method' => 'PATCH', 'action'=> ['App\Http\Controllers\TaskWebController@update',$tasks->id],'files'=>true]) !!} {{--
{!! Form::label('Status','Status:') !!} {!! Form::select('Status',array("inprogress"=>"In Progress","skipped"=>"skipped","notStart"=>"Not Started","done"=>"done"), null, ['class' => 'form-control']) !!}
--}} @if($user->is_master == "1")
{!! Form::label('assignment_id','Assigned To:') !!} {!! Form::select('assignment_id',$userList, null, ['class' => 'form-control']) !!}
@endif
{!! Form::label('Comment','Comment:') !!} {!! Form::textarea('comment_developer', null, ['class' => 'form-control']) !!}
{{ Form::hidden('assign', 'exist') }}
{!! Form::submit('Update task', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
admin comment
{{$tasks->comment_admin}}
user comment
{{$tasks->comment_user}}
@endif @endif {{--
@include('includes.form_error')
--}}
@endsection