@extends('layouts.master') @section('title', 'Debtors | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.worker profile')) @section('css') @endsection @section('fixedcontent')
@if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.worker profile') }} @role('Super-admin|Hr') @endrole
{{ __('basic.worker profile') }}

{{ $doctor->getRoleNames()[0] }}

{{ $doctor->name }}

{{ __('basic.id') }} {{ $doctor->id }}

{{ __('basic.branch') }}

@if ($doctor->branch) {{ $doctor->branch->name }} @else All @endif

{{ __('basic.phone') }}

{{ $doctor->phone_number }}

{{ __('basic.rate') }}

{{ round($rate, 2) }} / 5


    @foreach ($doctor_record as $item) @if ($item->type == 0) @php $type_text = __('basic.fine'); $text_color = 'cancel-color'; @endphp @elseif ($item->type == 1) @php $type_text = __('basic.bonus'); $text_color = 'done-color'; @endphp @elseif ($item->type == 2) @php $type_text = __('basic.promotion'); $text_color = 'done-color'; @endphp @elseif ($item->type == 3) @php $type_text = __('basic.problem'); $text_color = 'cancel-color'; @endphp @elseif ($item->type == 4) @php $type_text = __('basic.other'); $text_color = 'main-color'; @endphp @endif
  • {{ date('d M Y', strtotime($item->start)) }}

    {{ $type_text }}

    {{ __('basic.note') }}

    {{ $item->note }}

    {{ __('basic.price') }}

    {{ $item->amount }}
  • @endforeach
  • {{ date('d M Y', strtotime($doctor->started_work)) }}

    {{ __('basic.started working') }}
@foreach ($invoice as $item) @if ($item->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.not paid'); @endphp @elseif ($item->status == 1) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($item->status == 2) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.installment'); @endphp @elseif ($item->status == 3) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.paid'); @endphp @elseif ($item->status == 4) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.refund'); @endphp @endif @endforeach
{{ __('basic.name') }} {{ __('basic.brnahc') }} {{ __('basic.amount') }} {{ __('basic.status') }}
{{ $item->code }} {{ $item->branch->name }} @if (!empty($item->paid)) {{ $item->paid }} EGP @endif {{ $msg_invoice }}
@endsection @section('js') @endsection