芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/resources/views/projects/show.blade.php
@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $viewProjectMemberPermission = user()->permission('view_project_members'); $viewProjectMilestonePermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('view_project_milestones'); $viewTasksPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('view_project_tasks'); $viewGanttPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('view_project_gantt_chart'); $viewInvoicePermission = user()->permission('view_project_invoices'); $viewDiscussionPermission = user()->permission('view_project_discussions'); $viewNotePermission = user()->permission('view_project_note'); $viewFilesPermission = user()->permission('view_project_files'); $viewRatingPermission = user()->permission('view_project_rating'); $projectArchived = $project->trashed(); @endphp @section('filter-section')
@if ( !$project->public && $viewProjectMemberPermission == 'all' )
@endif @if ($viewFilesPermission == 'all' || ($viewFilesPermission == 'added' && user()->id == $project->added_by) || ($viewFilesPermission == 'owned' && user()->id == $project->client_id))
@endif @if ($viewProjectMilestonePermission == 'all' || $viewProjectMilestonePermission == 'added' || ($viewProjectMilestonePermission == 'owned' && user()->id == $project->client_id))
@endif @if (in_array('tasks', user_modules()) && ($viewTasksPermission == 'all' || ($viewTasksPermission == 'added' && user()->id == $project->added_by) || ($viewTasksPermission == 'owned' && user()->id == $project->client_id)))
@if (!$projectArchived)
@if ($viewGanttPermission == 'all' || ($viewGanttPermission == 'added' && user()->id == $project->added_by) || ($viewGanttPermission == 'owned' && user()->id == $project->client_id))
@endif @endif @endif @if (in_array('invoices', user_modules()) && !is_null($project->client_id) && ($viewInvoicePermission == 'all' || ($viewInvoicePermission == 'added' && user()->id == $project->added_by) || ($viewInvoicePermission == 'owned' && user()->id == $project->client_id)))
@endif @if (in_array('timelogs', user_modules()) && ($viewProjectTimelogPermission == 'all' || ($viewProjectTimelogPermission == 'added' && user()->id == $project->added_by) || ($viewProjectTimelogPermission == 'owned' && user()->id == $project->client_id)))
@endif @if (in_array('expenses', user_modules()) && ($viewExpensePermission == 'all' || ($viewExpensePermission == 'added' && user()->id == $project->added_by) || ($viewExpensePermission == 'owned' && user()->id == $project->client_id)))
@endif @if ($viewMiroboardPermission == 'all' && $project->enable_miroboard && ((in_array('client', user_roles()) && $project->client_access && $project->client_id == user()->id) || !in_array('client', user_roles())) )
@endif @if (in_array('payments', user_modules()) && !is_null($project->client_id) && ($viewPaymentPermission == 'all' || ($viewPaymentPermission == 'added' && user()->id == $project->added_by) || ($viewPaymentPermission == 'owned' && user()->id == $project->client_id)))
@endif @if ($viewDiscussionPermission == 'all' || ($viewDiscussionPermission == 'added' && user()->id == $project->added_by) || ($viewDiscussionPermission == 'owned' && user()->id == $project->client_id))
@endif @if ($viewNotePermission != 'none' )
@endif @if ($viewRatingPermission != 'none' && !is_null($project->client_id))
@endif @if($viewBurndownChartPermission != 'none' || $project->project_admin == user()->id)
@endif
@if ($viewNotePermission != 'none' )
@endif
@endsection @section('content')
@include($view)
@endsection @push('scripts') @endpush