@extends('layouts.master') @section('title', 'Tasks | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.tasks')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.tasks') }}
{{ __('basic.search filter') }} {{ __('basic.new') }}
@foreach ($stages as $item)
{{ $item->name}}
{{ $item->total_tasks }} {{ __('basic.tasks') }}
@if(count($item->tasks) > 0) {{-- Tasks --}} @foreach ($item->tasks as $item_deal)
{{ $item_deal->name }}
{{ $item_deal->description}}
@if($item_deal->client)
{{ __('basic.client') }}
@endif {{-- assgint to --}} @if($item_deal->assigns) @if(count($item_deal->assigns) > 0)
{{ __('basic.assign to') }}
@foreach ($item_deal->assigns as $worker_assign)
{{ $worker_assign->worker->full_name }}
@endforeach
@endif @endif
{{ date('d M Y', strtotime($item_deal->due_date)) }}
@if($item_deal->priority)
@if($item_deal->priority == 1) @php $msg = __('basic.low'); $color = "done-color"; @endphp @elseif ($item_deal->priority == 2) @php $msg = __('basic.medium'); $color = "pend-color"; @endphp @elseif ($item_deal->priority == 3) @php $msg = __('basic.high'); $color = "cancel-color "; @endphp @endif {{ $msg }}
@endif
@endforeach @else {{--
the stage is empty
--}} @endif
@endforeach
@endsection @section('js') {{-- sortable --}} @endsection