@extends('backend.layout') @section('content')
@if (Session::has('success'))
×
{{ Session::get('success') }}
@endif
Staff List
ADD NEW
Staff Name
Address
Phone
Branch
Date
ACTION
@if( $Staffs->count()>0) @foreach($Staffs as $new)
{{\App\Models\User::where(['id' => $new->user_id])->pluck('name')->first()}}
{{$new->address}}
{{$new->phone}}
{{\App\Models\LocalBranch::where(['id' => $new->branch_id])->pluck('branch_name')->first()}}
{{date('d-m-Y', strtotime($new->created_at))}}
{{date('h:i A', strtotime($new->created_at))}}
@endforeach
@else
{{"Currently No Records Available"}}
@endif @endsection