@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')
| {{__('Name')}} | {{__('Price')}} | {{__('Stage')}} | {{__('Tasks')}} | {{__('Users')}} | @if(Gate::check('deal edit') || Gate::check('deal delete')){{__('Action')}} | @endif
|---|---|---|---|---|---|
| {{ $deal->name }} | {{ currency_format_with_sym($deal->price)}} | {{ $deal->stage->name }} | {{count($deal->tasks)}}/{{count($deal->complete_tasks)}} |
@foreach($deal->users as $user)
|
@if(Gate::check('deal edit') || Gate::check('deal delete'))
@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
|
@endif
| {{ __('No data available in table') }} | |||||