@extends ('../welcome') @section('content')
Filter
Back
{{-- Table --}}

Buildings

@if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('buildings-export')) Export @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('buildings-archive')) @endif

Total: {{ $Allbuildings->total() }}

user()->type == 'admin' ||auth()->user()->role->hasPermission('buildings-export')? 'example1': 'nonExport' }} class="table table-bordered table-striped"> @foreach ($Allbuildings as $building) @endforeach
ID Name Phase Name Project Name Created Date Created Time Active
{{ $building?->id }} {{ $building->name }} @if ($building->phase?->id) {{ $building->phase->name }} @endif @if($building->phase->project) {{ $building->phase->project->name }} @endif {{ $temp[0] }} {{ $temp[1] }}
@csrf @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('buildings-hide')) @endif
@endsection