@extends('layouts.app')
@section('content')
@php
$addLeadAgentPermission = user()->permission('add_lead_agent');
$viewPipelinePermission = user()->permission('view_deal_pipeline');
$addPipelinePermission = user()->permission('add_deal_pipeline');
$addLeadSourcesPermission = user()->permission('add_lead_sources');
$addLeadCategoryPermission = user()->permission('add_lead_category');
$mangeLeadStagePermission = user()->permission('manage_deal_stages');
@endphp
@if ($addLeadAgentPermission != 'none')
@lang('app.addNewLeadAgent')
@endif
@if ($addLeadSourcesPermission != 'none')
@lang('app.addNewLeadSource')
@endif
@if($addPipelinePermission != 'none' && $addPipelinePermission != false)
@lang('app.addNew') @lang('modules.deal.pipeline')
@endif
@if($mangeLeadStagePermission != false && $mangeLeadStagePermission != 'none')
@lang('app.addNew') @lang('modules.deal.leadStage')
@endif
@if ($addLeadCategoryPermission != 'none')
@lang('app.addNewLeadCategory')
@endif
{{-- include tabs here --}}
@include($view)
@endsection
@push('scripts')
@endpush