{{-- resources/views/guests/companies/show.blade.php --}} @extends('layouts.app') @section('title', $company->name) @section('page_title', $company->name) @section('page_subtitle', 'Corporate account') @section('content')
← Companies Edit
{{ $company->name }}
@if($company->registration_number)
Reg: {{ $company->registration_number }}
@endif @if($company->contact_person)
{{ $company->contact_person }}
@endif @if($company->email)
{{ $company->email }}
@endif @if($company->phone)
{{ $company->phone }}
@endif
Total Guests {{ $company->guests_count }}
Reservations {{ $company->reservations_count }}
@if($outstanding > 0)
Outstanding ${{ number_format($outstanding, 2) }}
@endif @if($company->credit_limit > 0)
Credit Limit ${{ number_format($company->credit_limit, 2) }}
@endif
Recent Reservations
@if($recentReservations->isEmpty())

No reservations yet

@else
@foreach($recentReservations as $res) @endforeach
Reference Guest Check In Check Out Status
{{ $res->reference }} {{ $res->guest?->first_name }} {{ $res->guest?->last_name }} {{ $res->check_in_date->format('d M Y') }} {{ $res->check_out_date->format('d M Y') }} {{ str_replace('_', ' ', $res->status) }}
@endif
@endsection