@extends('admin.template.master') @section('title', $title) @section('content') @php $rtitle = ''; $description = ''; $organization = ''; $pdate = ''; $cdate = ''; $contact_person = ''; if(isset($rfpData)) { $rtitle = $rfpData->rfp_title; $description = $rfpData->rfp_description; $organization = $rfpData->organisation; $pdate = \Carbon\Carbon::parse($rfpData->publish_date)->format('d-m-Y'); $cdate = \Carbon\Carbon::parse($rfpData->closing_date)->format('d-m-Y'); $cpublish = \Carbon\Carbon::parse($rfpData->portal_date)->format('d-m-Y'); $organizationType = $rfpData->organisation_type; $company_image = $rfpData->company_image; $attachment = $rfpData->attachment; $contact_person = $rfpData->contact_person; $rstatus = $rfpData->rfp_status; $rpublish = $rfpData->publish; $rposted_by = $rfpData->posted_by; } $userName= Auth::user()->name; $userOrganisation_type= Auth::user()->organisation_type; $userPerson= Auth::user()->person; $userType= Auth::user()->user_type; $userId= Auth::user()->id; @endphp

RFP

@include('admin.partials.flash_message')
@csrf() @if(!empty($method)) @method($method) @endif

Edit RFP

@if($organization != "Select") @foreach($users as $k=>$us) @if($organization == $us->id) @endif @endforeach @else @endif
@if($organization != "Select") @foreach($users as $k=>$u) @if($u->id == $organization) @foreach(get_organisations() as $o=>$c) @if($u->organisation_type == $o) @endif @endforeach @endif @endforeach @else
@foreach($users as $k=>$u) @if($u->created_by == $userId) @foreach(get_organisations() as $k=>$c) @if($u->organisation_type == $k) @endif @endforeach @endif @endforeach
@endif
@if($organization != "Select") @foreach($users as $k=>$us) @if($organization == $us->id) @endif @endforeach @else
@foreach($users as $k=>$u) @if($u->created_by == $userId) @endif @endforeach
@endif
@if($organization != "Select") @foreach($users as $k=>$u) @if($u->id == $organization) @endif @endforeach @else
@foreach($users as $k=>$u) @if($u->created_by == $userId) @endif @endforeach
@endif
@if($organization != "Select") @foreach($users as $k=>$u) @if($u->id == $organization) @endif @endforeach @else
@foreach($users as $k=>$u) @if($u->created_by == $userId) @endif @endforeach
@endif
@if($userType != 0 && $rstatus == 0) @endif @if($userType != 0 && $rpublish == 1 && $userId == $rposted_by) @endif
@stop @section('javascript') @endsection