@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $viewClientDoc = user()->permission('view_client_document'); $viewTicket = user()->permission('view_tickets'); $viewClientNote = user()->permission('view_client_note'); $viewClientContact = user()->permission('view_client_contacts'); @endphp @section('filter-section')
@if (in_array('projects', user_modules())) @endif @if (in_array('invoices', user_modules())) @endif @if (in_array('estimates', user_modules())) @endif @if (in_array('payments', user_modules())) @endif @if ($viewClientContact == 'all' || $viewClientContact == 'added') @endif @if ($viewClientDoc == 'all' || ($viewClientDoc == 'added' && $client->clientDetails->added_by == user()->id) || ($viewClientDoc == 'owned' && $client->clientDetails->user_id == user()->id) || ($viewClientDoc == 'both' && ($client->clientDetails->added_by == user()->id || $client->clientDetails->user_id == user()->id))) @endif @if ($viewClientNote != 'none') @endif @if ($viewTicket == 'all' || $viewTicket == 'added') @endif @if ($gdpr->enable_gdpr) @endif
@endsection @push('styles') @endpush @section('content')
@include($view)
@endsection @push('scripts') @endpush