@extends('layouts.list_pdf') @section('pdf-title') {{ __('Customer Projects') }} @endsection @section('header-info')

{{ __('Customer Projects') }}

{{ __('Name:') }} {{ isset($customers) ? $customers->name : ''}}

@if (isset($date_range) && !empty($date_range))

{{ __('Period:') }} {{ $date_range }}

@endif

{{ __('Print Date:') }} {{ formatDate(date('d-m-Y')) }}

@endsection @section('list-table') @foreach($projectList as $data) @php if($data->charge_type==3) { $billing_type = "Task Hours"; } elseif ($data->charge_type==2) { $billing_type = "Project Hours"; } elseif ($data->charge_type==1) { $billing_type = "Fixed Rate"; } @endphp @endforeach
{{ __('Project Name') }} {{ __('Start Date') }} {{ __('Deadline') }} {{ __('Billing Type') }} {{ __('Status') }}
{{ $data->name }} {{ formatDate($data->begin_date) }} {{ !empty($data->due_date) ? formatDate($data->due_date) : '-' }} {{ $billing_type }} {{ !empty($data->projectStatuses) ? $data->projectStatuses->name : '' }}
@endsection