@extends('layouts/LayoutMaster') @section('title', 'Дело') @section('vendor-style') @endsection @section('page-style') @endsection @section('content') @include('panels/modals/addDeal') @include('panels/modals/addObject', ['fid' => $folder->id]) @mobile
@endmobile
@foreach($folders as $folder)
{{ Helper::getCountDeals($folder->id, 0) }}
{{ Helper::getCountDeals($folder->id, 1) }}
{{ Helper::getCountDeals($folder->id, 2) }}
{{ $folder->name }}
@endforeach
@foreach($deals as $deal) @php $dDate = json_decode($deal->date, true); $creator = Helper::getUserInfo($deal->uid); $bg = ''; $text = 'Дело в работе'; if($deal->status == 3){ $bg = 'topbg-red'; $text = 'Отклонено'; }elseif($deal->status == 2){ $bg = 'topbg-green'; $text = 'Выполнено'; }elseif($deal->status == 1){ $bg = 'topbg-green'; $text = 'Ожидает подтверждения'; } @endphp
{{ $text }}
#{{ $deal->id }} {{ $deal->title }}
Цена:
@if($deal->sum == 0) Не указана @else {{ $deal->sum }} ₽ @endif
Дата:
{{ $dDate['start'] }} - {{ $dDate['finish'] }}
Участники:
{{ Helper::giveStats('deal.members', $deal->id) }}
@endforeach
@isset($open) @include('includes/deal/mes', ['sUID' => $open['sUID'], 'mess' => $open['mess'], 'chat' => $open['chat']]) @endisset
@include('includes/messenger/send', ['form' => 'message.send.deal'])
@endsection @section('content-right')
Создать дело
Создать объект
Вернуться назад
@endsection @section('vendor-script') @endsection @section('page-script') @mobile @endmobile @endsection