@php use Carbon\Carbon; @endphp @extends('companyuser::layouts.master') @section('title', __('sales::proforma_invoices.show_proforma_invoice')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@can('sales.proforma-invoices.export') @endcan
@can('sales.proforma-invoices.view') @if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @endcan @can('sales.proforma-invoices.export') @endcan
@if( $output['proformaInvoice']->customer->deleted_at || !$output['proformaInvoice']->customer->status)
@lang('sales::estimates.customer_deleted_or_deactivated')
@endif @include('companyuser::errors.lists') @include('companyuser::errors.all')
{{__('sales::estimates.reference_id')}}

{{$output['proformaInvoice']->code}}

{{__('sales::estimates.description')}}

{{$output['proformaInvoice']->description}}

{{__('sales::estimates.customer')}}
{{$output['proformaInvoice']->customer->name}}
{{__('sales::estimates.issue_date')}}

{{$output['proformaInvoice']->formatDate($output['proformaInvoice']->issue_date)}}

{{__('sales::estimates.due_date')}}

{{$output['proformaInvoice']->formatDate($output['proformaInvoice']->due_date)}}

{{__('sales::customers.created_by')}}

@if($output['proformaInvoice']->created_by == null) @lang('accounting::assets.System') @elseif($output['proformaInvoice']->created_by == auth()->user()->id) @lang('accounting::assets.You') @else {{$output['proformaInvoice']->addedBy->uname}} @endif

@lang('sales::estimates.customer_details'):

@php $mobile = $output['proformaInvoice']->customer->mobile ? str_replace("+", "00", App\Enums\PhoneCode::get($output['proformaInvoice']->customer->country_code)) . '-' . $output['proformaInvoice']->customer->mobile : '' @endphp
@lang('sales::estimates.phone'): {{$mobile}}
@lang('sales::estimates.email'): {{$output['proformaInvoice']->customer->email}}