@extends('back.layout') @section('title') {{ __('j32') }} - {{ __('n1') }} @endsection @section('css') @endsection @php header('Access-Control-Allow-Origin: *'); $color = ['fee4cb', 'e9e7fd', 'ffd3e2', 'c8f7dc', 'd5deff']; $submits = \App\Models\Submit::where('user_id', '=', auth()->user()->id)->where('status', '=', 'Pending')->get(); $pending_balance = 0; foreach ($submits as $submit) { $pending_balance += \App\Models\Task::find($submit->task_id)->price; } @endphp @section('content')
* {{ __('j49') }}
@endif {{-- Tasks Box --}}@if ($task->type == 1) {{ __('k1') }} @elseif ($task->type == 2) {{ __('k2') }} @else {{ __('k3') }} @endif
{{ $task->description }}
{{ __('k4') }}
{{ (count(App\Models\Submit::where('task_id', '=', $task->id)->where('status', '!=', 'Canceled')->get()) /$task->users) *100 }}%
{{ __('k14') }}