@extends ('../welcome') @section ('content')

Units

@foreach ($units as $unit) @if(empty($unit->building->phase->project->id)) @else @endif @endforeach
Name phase Building Building Type Project Total Price Total Space Floor Bedroom Garden Space Bathrooms Roof Space Created At Active
{{$unit->name}} {{$unit->building->phase->name}} {{$unit->building->name}} {{$unit->building->type}} {{$unit->building->phase->project->name}} {{$unit->unit_total_price}} {{$unit->unit_space}} {{$unit->floor}} {{$unit->bedrooms}} {{$unit->garden_space ? $unit->garden_space : 'No Garden For this Unit'}} {{$unit->bathrooms}} {{$unit->building->roof_space}} {{$unit->created_at}} @if(auth()->user()->type == 'admin')
@csrf
@endif
@endsection