@extends('layouts.app') @section('content')
@include('layouts.partials.flash-messages')
@foreach($employeeData as $employee) @endforeach
{{trans('employee.code')}} {{trans('employee.name')}} {{trans('employee.branch')}} {{trans('employee.manager_name')}} {{trans('employee.guarantor')}} {{trans('employee.hiring_date')}} {{trans('employee.country')}}
{{$employee->code}}

{{$employee->employee_name}}{{ DB::table('business_jobs')->where('id',$employee->job_id)->value('name') }} {{( $employee->phone_1 ? $employee->phone_1 :'')}}

{{ DB::table('business_branches')->find($employee->branch_id)->name }} @if ($employee->manager_id) {{DB::table('employee_general_data')->where('id','=',$employee->manager_id)->value('employee_name') }}@endif @if($employee->guarantor_id) {{DB::table('guarantors')->where('id','=',$employee->guarantor_id)->value('name')}} @endif

@if($employee->hiring_date) {{$employee->hiring_date}} @endif @if($employee->contract_ending_date) {{$employee->contract_ending_date}} @endif

@include('employees.employee_add_parts.branch_select')
@endsection @section('css') @endsection @section('js') @endsection