@extends('layouts.main-layout') @section("title") Sow App - View all @endsection @section('content')

Update Pricing

@csrf @method('PUT')

All availabe data

@if(!empty($category) && isset($category))
@foreach($category as $cat) @php $isHidden = false; $isDeleted = false; @endphp @foreach($cat->belongingclient as $belonging_client) @php if($belonging_client->status == 'hidden'){ $isHidden = true; } if($belonging_client->status == 'deleted'){ $isDeleted = true; } @endphp @endforeach

{{ $cat->categorie_name }}

Is category active?

@if($cat->is_categorie_active && $isHidden == false )

YES

@else

NO

@endif

Action

Edit Category


Design hours

Development hours

Others hours

Is question active?

Action

@foreach($cat->subcategory as $subcat) @if(in_array($subcat->sub_categorie_id, $belongingOfSubCategory->toArray()) || $subcat->sub_categorie_isDefault == 1)
@foreach($subcat->question as $question) @if(!in_array($question->question_id, $deletedQuestions->toArray()))

{{ $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()))

YES

@else

NO

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