@extends('layouts.app') @section('form-title') {{ __(ucfirst($org_type)) }} @endsection @section('breadcrumb') @if(!empty($org_type)) @else @endif @endsection @section('content')
@php $add_ability = empty($org_type) ? 'create other organizations' : 'add ' . $org_type . ' organisations'; @endphp @if(canViewUpdate($add_ability)) {{-- Add new organisation --}}
{{ __('New ' .$org_type) }}
@endif {{-- Add new organisation end --}}
{{ __('Search '. $org_type) }}
@csrf
{{-- Search end --}}
{{ __($org_type) }}
@forelse ($organisations as $organisation) @empty @endforelse
{{ __(ucfirst($org_type)) }} {{ __('Phone') }} {{ __('E-mail address') }} {{ __('Website') }} @if($org_type === 'organisations') {{ __('Type(s)') }} @else {{ __('Type') }} @endif
@if(!empty($org_type)) {{ $organisation->name }} @if($organisation->application_owner === 'yes') ({{ __('Application Owner') }}) @endif @else {{ $organisation->name }} @if($organisation->application_owner === 'yes') ({{ __('Application Owner') }}) @endif @endif {{ formatPhoneNumber($organisation->phone) }} {{ $organisation->email }} {{ $organisation->website }} @if($org_type === 'organisations') {{ $organisation->type_names }} @else {{ __(ucfirst($org_type)) }} @endif
{{ __('No result found') }}
{{ $organisations->appends(request()->query())->links() }}
{{-- Organisation listing end --}}
@endsection @push('child-scripts') @endpush