@extends('dashboard.layout.master') @section('content')
@include('dashboard.layout.navbar') @if(Auth::user()->role==37 || $allow_to_update_form->allow_to_update_form=='PSIA')
@endif
Survey Form List
@include('dashboard.survey.filter', ['route' => 'survey.pending.form'])
@if(Auth::user()->role==1 || Auth::user()->role==51) @if(Auth::user()->role==1) @endif @if(Auth::user()->role==51) @endif @else @if(Auth::user()->role==37 || $allow_to_update_form->allow_to_update_form=='PSIA') @endif @if(Auth::user()->role==39 || $allow_to_update_form->allow_to_update_form=='COO') @endif @if(Auth::user()->role==38 || $allow_to_update_form->allow_to_update_form=='HRU_Main') @endif @if(Auth::user()->role==26 || $allow_to_update_form->allow_to_update_form=='HRU') @endif @if(Auth::user()->role==34 || $allow_to_update_form->allow_to_update_form=='IP') @endif @if(Auth::user()->role==30 || $allow_to_update_form->allow_to_update_form=='field_supervisor') @endif @endif @foreach($survey_data as $item) @php $beneficairy_details=json_decode($item->beneficiary_details); $form_status=\DB::table('form_status')->where('form_id',$item->survey_form_id)->where('update_by','IP')->first(); $seniorpost=\DB::table('form_status')->where('form_id',$item->survey_form_id)->where('update_by','HRU')->first(); @endphp {{-- here three condition must be filfil 1- form uc must be include in user account 2-junior user role verify according to the form step 3 form must be in pending condition --}} @if(($item->user_status=='30' || $item->user_status=='51' || $item->team_member_status=='field_supervisor') && ($form_status==null || $form_status->form_status=='P')) @endif @endforeach
Ref No Beneficiary Name CNIC Father NameUser NameForm Name Lot District Tehsil UCRole Name Select Status Status Commentsid Actions
Ref no Beneficiary Name CNIC Father Name Form Name Lot District Tehsil UC StatusHRU Main Status HRU Main Comment Certification StatusCEO Status CEO CommentCOO Status COO CommentPSIA Status PSIA CommentHRU Status HRU CommentIP Status IP CommentId Actions
{{$beneficairy_details->b_reference_number}} {{$beneficairy_details->beneficiary_name}} {{$beneficairy_details->cnic}} {{$beneficairy_details->father_name}} {{$item->form_name}} {{$item->lot_name}} {{$item->district_name}} {{$item->tehsil_name}} {{$item->uc_name}} {{ isset($seniorpost) ? ($seniorpost->form_status == 'A' ? 'approved' : ($seniorpost->form_status == 'R' ? 'rejected' : 'pending')): 'Not Available' }} {{$item->generated_id}} View Detail
{{$survey_data->links('')}}
@if(session('error')) @endif @if(session('success')) @endif @endsection