@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $viewClientNote = user()->permission('view_lead_note'); $viewDeals = user()->permission('view_deals'); @endphp @section('filter-section')
@if ($viewDeals == 'all' || ($viewDeals == 'added' && $leadContact->added_by == user()->id) || ($viewDeals == 'owned' && $leadContact->added_by == user()->id) || ($viewDeals == 'both' && $leadContact->added_by == user()->id) ) @endif @if ($viewClientNote == 'all' || $viewClientNote == 'both' || $viewClientNote == 'added' || $viewClientNote == 'owned') @endif
@endsection @section('content')
@include($view)
@endsection @push('scripts') @endpush