@extends('layouts.main-layout') @section("title") {{ config('app.name') }} - View all @endsection @section('content')

Update Pricing

@csrf @method('PUT')

Customize for client

@foreach($clients as $profile) @endforeach
# First Last Email Phone number Is client active Is already customized Action
{{ $profile->client_id }} {{ $profile->client_firstName }} {{ $profile->client_lastName }} {{ $profile->client_email }} {{ $profile->client_phoneNumber }} @if($profile->client_isActive) Yes @else No @endif @if(in_array($profile->client_id, $isCustomizedForClientCheck)) Yes @else No @endif Customize

All available data for clients to show except for already customized clients

@if(!empty($category) && isset($category))
@foreach($category as $cat) @if(!in_array($cat->categorie_id, $deletedCategoires))

{{ $cat->categorie_name }}

Is category active?

@if($cat->is_categorie_active && !in_array($cat->categorie_id, $categoryToHide))

YES

@else

NO

@endif

Action

Edit Category


Design hours

Development hours

Others hours

Is subcategorie and question active?

Action

@foreach($cat->subcategory as $subcat) @if(!in_array($subcat->sub_categorie_id, $deletedSubcategories->toArray())) @if(!in_array($subcat->sub_categorie_id, $subcategoryToHideAdminSide)) @if(in_array($subcat->sub_categorie_id, $belongingOfSubCategory->toArray()) || $subcat->sub_categorie_isDefault == 1) @php $repetetiveCount = 0; @endphp
@foreach($subcat->question as $question) @if(in_array($question->question_id, $belongingOfQuestions->toArray()) || $question->question_isDefault == 1) @if(!in_array($question->question_id, $deletedQuestions->toArray())) @if($question->sub_categorie_id == $subcat->sub_categorie_id) @php $repetetiveCount++; @endphp @endif
@if($repetetiveCount == 1)


Edit

@endif

{{ $question->question_name }}

@if($question->question_design_hours == "VARIES")

{{ $question->question_design_hours }}

@else

{{ $question->question_design_hours }}h

@endif
@if($question->question_development_hours == "VARIES")

{{ $question->question_development_hours }}

@else

{{ $question->question_development_hours }}h

@endif
@if($question->question_others_time == "VARIES")

{{ $question->question_others_time }}

@else

{{ $question->question_others_time }}h

@endif
@if(($question->question_is_active && !in_array($question->question_id, $hideQuestions->toArray())) && ($subcat->sub_categorie_isActive && !in_array($subcat->sub_categorie_id, $subcategoryToHide)))

YES

@else

NO

@endif
@endif @endif @endforeach
@endif @endif @endif @endforeach
@endif @endforeach
@endif
@endsection