@extends ('../welcome') @section('content')
@csrf {{-- @if (auth()->user()->role->hasPermission('phases-update')) --}} {{-- @endif --}} {{-- @if (auth()->user()->role->hasPermission('phases-delete')) --}} {{-- @endif --}}
@if ($phase->project->is_residential == 0) @endif @if(auth()->user()->type == 'admin') @foreach ($phase->users as $user) @endforeach @endif
Phase Name: {{ $phase->name }}
Project Name: {{ $phase->project->name }}{{ $phase->project->is_residential == 1 ? ' - Residential' : '' }}
Type {{ $phase->type ?? '' }}
Active: {{ $phase->is_active == 0 ? 'Not Available' : 'Available' }}
Created at : {{ $phase->created_at }}
Accessed By :
{{ $user->name }}
{{-- @if (auth()->user()->role->hasPermission('buildings-read')) --}}

{{ $phase->project->is_residential == 1 ? 'building' : 'Floor' }}

Total: {{ count($phase->buildings) }}

@if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('buildings-create')) @endif
user()->type == 'admin' ||auth()->user()->role->hasPermission('buildings-export')? 'example1': 'nonExport' }} class="table table-bordered table-striped"> @if ($phase->project->is_residential == 1) @endif @if (auth()->user()->type == 'admin') @endif @foreach ($phase->buildings as $building)
ID NameBuilding Type Number of FloorsCreated Date Created TimeVisibilityAction