@extends('layouts.main') @section('page-title') {{__('Manage Deals')}} @if($pipeline) - {{$pipeline->name}} @endif @endsection @push('css') @endpush @push('scripts') @endpush @section('page-breadcrumb') {{__('Deals')}} @endsection @section('page-action')
@if($pipeline)
{{ Form::open(array('route' => 'deals.change.pipeline','id'=>'change-pipeline')) }} {{ Form::select('default_pipeline_id', $pipelines,$pipeline->id, array('class' => 'form-control mx-2 custom-form-select','id'=>'default_pipeline_id')) }} {{ Form::close() }}
@endif @can('deal import')
@endcan
@can('deal create')
@endcan
@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(Gate::check('deal edit') || Gate::check('deal delete')) @endif @if(count($deals) > 0) @foreach ($deals as $deal) @if(Gate::check('deal edit') || Gate::check('deal delete')) @endif @endforeach @else @endif
{{__('Name')}} {{__('Price')}} {{__('Stage')}} {{__('Tasks')}} {{__('Users')}}{{__('Action')}}
{{ $deal->name }} {{ currency_format_with_sym($deal->price)}} {{ $deal->stage->name }} {{count($deal->tasks)}}/{{count($deal->complete_tasks)}} @foreach($deal->users as $user) imageavatar) src="{{get_file($user->avatar)}}" @else src="{{ get_file('uploads/users-avatar/avatar.png')}}" @endif class="rounded-circle " width="25" height="25"> @endforeach @can('deal show') @if($deal->is_active)
@endif @endcan @can('deal edit')
@endcan @can('deal delete')
{!! Form::open(['method' => 'DELETE', 'route' => ['deals.destroy', $deal->id]]) !!} {!! Form::close() !!}
@endif
{{ __('No data available in table') }}
@endif @endsection