@extends('layouts.admin') @section('page-title') {{__('Manage Deals')}} @if($pipeline) - {{$pipeline->name}} @endif @endsection @push('css-page') @endpush @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@endsection @section('content') @if($pipeline)
{{__('Total Deals')}}

{{ $cnt_deal['total'] }}

{{__('This Month Total Deals')}}

{{ $cnt_deal['this_month'] }}

{{__('This Week Total Deals')}}

{{ $cnt_deal['this_week'] }}

{{__('Last 30 Days Total Deals')}}

{{ $cnt_deal['last_30days'] }}

@if(count($deals) > 0) @foreach ($deals as $deal) @if(\Auth::user()->type != 'Client') @endif @endforeach @else @endif
{{__('Name')}} {{__('Price')}} {{__('Stage')}} {{__('Tasks')}} {{__('Users')}} {{__('Action')}}
{{ $deal->name }} {{\Auth::user()->priceFormat($deal->price)}} {{ $deal->stage->name }} {{count($deal->tasks)}}/{{count($deal->complete_tasks)}} @foreach($deal->users as $user) imageavatar) src="{{asset('/storage/uploads/avatar/'.$user->avatar)}}" @else src="{{asset('/storage/uploads/avatar/avatar.png')}}" @endif class="rounded-circle " width="25" height="25"> @endforeach @can('view deal') @if($deal->is_active) @endif @endcan @can('edit deal') @endcan @can('delete deal')
{!! Form::open(['method' => 'DELETE', 'route' => ['deals.destroy', $deal->id],'id'=>'delete-form-'.$deal->id]) !!} {!! Form::close() !!}
@endif
{{ __('No data available in table') }}
@endif @endsection